GetDoubleFromLocalizedString
You can review the details about the GetDoubleFromLocalizedString JSP function.
Description
This JSP function returns a double value that is represented in a string containing the number in the format used by a particular locale.
This function does the reverse of the getLocalizedStringFromDouble() function.
Syntax
double getDoubleFromLocalizedString(YFCLocale aLocale, String sVal)
Input parameters
aLocale - Required. The YFCLocale object for which you want the number formatted for a specific locale.
sVal - Required. The string containing the formatted representation of the number.
Output parameters
A double containing the unformatted number.
JSP usage
This example shows how the string variable containing a formatted double called sTotalInternalUnassignedDemand is compared to zero by first converting it into the double value.
<% if ((getDoubleFromLocalizedString(getLocale(),
sTotalInternalUnassignedDemand)) > 0) {%>
<table border="1" style="border-color:Black" cellspacing="2" cellpadding="2"
bgcolor="<yfc:getXMLValue
binding="xml:/InventoryInformation/Item/InventoryTotals/Demands/@Total
InternalUnassignedDemand" />">
<tr>
<td style="height:10px;width:15px"></td>
</tr>
</table>
<%}%>