Currency Formatting in APEX Salesforce (Make use of the current user's Locale)
Currency Formatting in APEX Salesforce (Make use of the current user’s Locale)
Quick update to my previous post on Currency Formatting in APEX, to utilize the currently logged in User’s Locale settings to identify the Currency, Thousand Delimiter and Decimal Delimiter Symbols. Code it available in GitHub here. You can call the method like this. String sValue = '1234567890.0123'; System.debug(clsFormatCurrency.FormatCurrencyByCurrentUserLocale(sValue, true)); Happy Coding!
View On WordPress














