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

Name

LSIsCurrency

Synopsis

                  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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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