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
Vijay RautVijay Raut 

Auto Formatting Number

Hi All,

In my Apex Code, I am having Number fields. If those fields has the data greater than 9,999,999.99 then it will automatically convert to the Exponential value (Like in case 19,999,999.99 would e replaced to 1.999999999E7).

But i want to keep this value intact and not want auto conversion to exponential value.

Is there any easy way to acheive this?
What i thaught is use of String split and some logic. but is there any better way to acheive same.

Thanks in Advance.

V.R.
Vijay RautVijay Raut
Acheived same using static methods available in Decimal class which released in spring 08 release.

V.R.