You need to sign in to do that
Don't have an account?
ANUJIT DAS
How to format a Decimal value into user locale format with comma as decimal seperator?
Suppose I have a string: 500 090,00. How to use format() method to this string. It is in french locale. you cannot use decimal.value of this string also. it gives error.
format() method is not supported with a decimal with comma seperated. it only takes dot as decimal seperator. But there are many locales which uses comma or inverted quote as decimal seperator?
Any help is appreciated.
format() method is not supported with a decimal with comma seperated. it only takes dot as decimal seperator. But there are many locales which uses comma or inverted quote as decimal seperator?
Any help is appreciated.
After some research, I found below links see if that helps you.
http://salesforce.stackexchange.com/questions/21384/format-decimal-in-apexoutputtext-respecting-the-users-locale
http://salesforce.stackexchange.com/questions/15042/how-to-use-locale-settings-for-decimal-separator
http://salesforce.stackexchange.com/questions/21395/which-decimal-symbol-is-used-in-the-current-users-locale
https://developer.salesforce.com/forums/?id=906F000000092BCIAY
Hope this helps you!
If this helps you please mark it as solved it will make available for others as a proper solution.
Thanks and Regards
Sandhya