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
sandeep kumar 44sandeep kumar 44 

replace dot with comma in visualforce page

hello all,

i am working on a visualforce page and i want to replace the dot in decimal with comma can and one help me please .

<apex:column headerValue="Preço de lista">
<apex:outputText value="{!oliWrapper.price}" id="unitPrice"/>

Thanks in Advance

Try using a format string:

<apex:column headerValue="Preço de lista">
  <apex:outputText value="{0, number, ##0,00}" id="unitPrice">
    <apex:param value="{!oliWrapper.price}"/>
ShashankShashank (Salesforce Developers) 
Please see if this helps:
sandeep kumar 44sandeep kumar 44

i used the code you gave comma is replaced but this is a problem . 

the values which is there in the reocrd is 2358.33 and i want it to be shown like 2358,33

what i mean is in a currency you have 2358 is a values and 33 is a decimal value . i just want to should comma insted of dot for a decimal 

U JayU Jay
Hi Sandeep,
    Did you get your requirement?
   Can you help me too?

I have to replace . With , in from the decimal / currency value within visualforce page using output text without output field.

<apex:outputPanel rendered="{!localeValue != 'Eng'}">

<apex:outputText value="{!countryCurrencySymbol} {!SUBSTITUTE(TEXT(additionalCost.Actual_Price_without_Discount__c),'.',',')}" rendered="{!NOT(ISNULL(additionalCost.Actual_Price_without_Discount__c))}"/>


This is my code. Replacement took plae nicely. But the terminating zeroes will not display.

Value in db = 12.30

Value displayed = 12,3

value required = 12,30

Value in db = 12.34000

Value displayed = 12,34

value required = 12,34000

What change i should make?