August 2001
Intermediate to advanced
976 pages
38h 8m
English
LSCurrencyFormat
LSCurrencyFormat(number[,type])
Returns a locale-specific currency format where
number is the currency amount, and
type is the locale-specific convention.
Valid entries for type are
None (the amount), Local (the
amount with locale-specific currency formatting; the default), and
International (the amount with its corresponding
three-letter international currency prefix). The following example
displays currency formats for each locale:
<CFLOOP INDEX="locale" LIST="#Server.Coldfusion.SupportedLocales#">
<CFSET temp = SetLocale(locale)>
<CFOUTPUT>
<P><B>#locale#</B><BR>
None: #LSCurrencyFormat(1000000.99, "None")#<BR>
Local: #LSCurrencyFormat(1000000.99, "Local")#<BR>
International: #LSCurrencyFormat(1000000.99, "International")#<BR>
</CFOUTPUT>
</CFLOOP>Read now
Unlock full access