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
Developer_shaanDeveloper_shaan 

displaying a string value in thousands format

I have a string which has value as "24098909090" .Now i need to display the value in thousands.

i.e after every third charcter in a string a comma should be inserted.

Ex: "24,098,909,090" .

 

Is there any solution for this....

How to make use of Javascript or Apex script to handle this kind of issue??

 

Thanks

shaan

Pradeep_NavatarPradeep_Navatar

In my opinion, you should use numeric or currency field type instead of the string. Numeric and Currency fields automatically converts in the format shown in your post.

 

Hope this helps.