home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / lsnumberformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  984 b   |  40 lines

  1. <!--- This shows LSNumberFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>LSNumberFormat Example</TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10.  
  11. <H3>LSNumberFormat Example</H3>
  12.  
  13. <P>LSNumberFormat returns a number value using
  14. the locale convention.  
  15.  
  16. <!--- loop through a list of possible locales and
  17. show number values  --->
  18. <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
  19. INDEX="locale" DELIMITERS=",">
  20.     <CFSET oldlocale = SetLocale("#locale#")>
  21.  
  22.     <CFOUTPUT><P><B><I>#locale#</I></B><BR>
  23.         #LSNumberFormat(-1234.5678, "_________")#<BR>
  24.         #LSNumberFormat(-1234.5678, "_________.___")#<BR>
  25.         #LSNumberFormat(1234.5678, "_________")#<BR>
  26.         #LSNumberFormat(1234.5678, "_________.___")#<BR>        
  27.         #LSNumberFormat(1234.5678, "$_(_________.___)")#<BR>        
  28.         #LSNumberFormat(-1234.5678, "$_(_________.___)")#<BR>        
  29.         #LSNumberFormat(1234.5678, "+_________.___")#<BR>        
  30.         #LSNumberFormat(1234.5678, "-_________.___")#<BR>        
  31.         <hr noshade>
  32.     </CFOUTPUT>
  33.  
  34. </CFLOOP>
  35.  
  36.  
  37.  
  38. </BODY>
  39. </HTML>       
  40.