August 2003
Intermediate to advanced
1140 pages
68h 45m
English
LSIsCurrency
LSIsCurrency(string)Returns true if string
is a locale-specific currency string and false if
it isn’t. Here’s an example that
determines whether the given strings are locale-specific currency
values for each locale:
<cfloop index="locale" list="#Server.Coldfusion.SupportedLocales#">
<cfset SetLocale(locale)>
<cfoutput>
<p><b>#locale#</b><br>
99.99: #LSIsCurrency('99.99')#<br>
$1234: #LSIsCurrency('$1234')#<br>
$1,234,567,890: #LSIsCurrency('$1,234,567,890')#<br>
$1234.99: #LSIsCurrency('$1234.99')#<br>
</cfoutput>
</cfloop>