+ Start a Discussion
chiranjeevitgchiranjeevitg 

Problem with displaying currency values with decimals.

Hi,

 

I have created a formula field of Currency Type, In this i'm referring another standard currency field name Amount.

As this standard currency field is doing currency conversion i'm not able to display this amount field in visualforce page.

So I have created a formula field and referring that Standard Amount field. I'm able to display the value in visualforce page, but if the Actual amount is USD 125.00, in visualforce page it displays USD 125.0.

 

Is there any way to display the decimal values properly?

 

Thank You.

Pradeep_NavatarPradeep_Navatar

Try converting the currency value to string and then display in VF page. Example: String.valueOf(variable).

 

Hope this helps.

chiranjeevitgchiranjeevitg

Hi Pradeep,

 

Thanks for your reply....I have solved this in different manner.