Name
LSEuroCurrencyFormat — New as of ColdFusion 4.01
Synopsis
LSEuroCurrencyFormat(amount
[,type
])
Returns a locale-specific currency format with the Euro as the symbol
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 Euro currency formats for each locale:
<CFLOOP INDEX="locale" LIST="#Server.Coldfusion.SupportedLocales#"> <CFSET temp = SetLocale(locale)> <CFOUTPUT> <P> <B>#locale#</B><BR> None: #LSEuroCurrencyFormat(1000000.99, "None")#<BR> Local: #LSEuroCurrencyFormat(1000000.99, "Local")#<BR> International: #LSEuroCurrencyFormat(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.