function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
deepzdeepz 

Avoid exponential values in numeric fields

Hi,

We have a page with a number field.if the number value is too large,it is getting displayed in exponential format...like 1.345e5.

 

Somebody please let me know how this can be fixed.

 

Thanks.

prageethprageeth

Hello DeepZ;

You can use the following syntax .(###,### represents the format of the output.)

 

 

Page:

<apex:outputText value="{0, number,###,####}">

<apex:param value="{!val}" />

</apex:outputText> 

 

 Method: 

public Double getVal(){

return 123850000000000000.00;

} 

 


Message Edited by prageeth on 11-17-2009 05:55 AM