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
rmahantarmahanta 

Data Formatting Issue

Need some help re one Data formatting issue.

As per the requirement , I need to display some of the number and currency field values as shown below.

Display Option 1 : 1,000,000,000
Display Option 2 : 1.000.000.000

I am able to display as Option 1. However the same code does not work for Option2.

sample code :
------------------------

Display Option 1 : 1,000,000,000 .
This is working fine with the below code

<td class='bold border'>

<apex:outputText value="{0, number , ###,###,###,###}"><apex:param value="{!cc.Total_carbon_savings__c}"/></apex:outputText></td>


Display Option 2 : 1.000.000.000

above code does not work for this option 2.
Error: The number format pattern for <apex:outputText> is invalid.

Any idea? 

Thanks in advance :)

Edwin VijayEdwin Vijay

It is because maybe '.' is always considered as a decimal point, and it makes sense to say it's an invalid format