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
Nehru komuNehru komu 

Hi all,i Want to format number as currency(INR) like 12,64,900 and 1,50,000

Shamsi 110Shamsi 110
Create a Currency type formula field and set your number value to this. and show this newly formula field as your number field.
Ajay K DubediAjay K Dubedi
Hi Nehru,

Below Sample Code can fulfill your requirements. Hope this will work for you.

<apex:outputText value="{0, number, ###,##0}" id="myNumberDisplay" >
    <apex:param value="{!myNumber}"/>
</apex:outputText>
Use apex:outputText with apex:param to format the text. as you are using datatable so it will look like

<apex:column>
   <apex:facet name="header">Owner</apex:facet>
    <apex:outputText value="{0, number, ###,##0}" id="myNumberDisplay" >
        <apex:param value="{!myNumber}"/>
    </apex:outputText>
</apex:column>
In controller you can try this

Decimal rA = 1298763.86;
List<String> args = new String[]{'0','number','###,###,##0.00'};
String s = String.format(rA.format(), args);
System.debug(s);

Please mark this as best answer if this solves your problem.

Thank you,
Ajay Dubedi