GetLocalizedStringFromDouble
You can review the details about the getLocalizedStringFromDouble JSP function. This JSP function returns a representation of a string value and displays it in the correct format for a specific locale.
Description
always displays numeric data in the format specific to the locale of the logged in user. If you have a decimal value that you need to display to the user that is not formatted in any locale, use this function to get a string representing the correctly formatted representation of the decimal value.
This function does the reverse of the getDoubleFromLocalizedString() function.
Syntax
String getLocalizedStringFromDouble(YFCLocale aLocale, double aDblVal)
Input parameters
aLocale - Required. The YFCLocale object for which you want the number formatted for a specific locale.
aDblVal - Required. The number (which can include decimals) you want formatted for a specific locale.
Output parameters
A string containing the correctly formatted representation of the number.
JSP usage
This example shows how to get the localized format of the number 2500.75. If the locale used is en_US, then the sBalance variable is 25,00.75.
String sBalance = getLocalizedStringFromDouble(locale, 2500.75);