Name
LSCurrencyFormat
Synopsis
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>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.