• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

B.2. Alphabetical List of Functions > LSEuroCurrencyFormat

Name

LSEuroCurrencyFormat

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). In ColdFusion MX, if the current locale is not part of the Euro Zone, the currency format specific to the locale is used instead of the euro. The following example displays euro currency formats for each locale:

<cfloop index="locale" list="#Server.Coldfusion.SupportedLocales#">
  <cfset 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>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint