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

  1. <!--- This example shows FormatBaseN and InputBaseN--->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. FormatBaseN Example
  6. </TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10. <H3>FormatBaseN Example</H3>
  11.  
  12. <P>FormatBaseN converts a number to a string in the
  13. base specified by Radix.
  14. <P>
  15. <CFOUTPUT>
  16. <BR>FormatBaseN(10,2): #FormatBaseN(10,2)#
  17. <BR>FormatBaseN(1024,16): #FormatBaseN(1024,16)#
  18. <BR>FormatBaseN(125,10): #FormatBaseN(125,10)#
  19. <BR>FormatBaseN(10.75,2): #FormatBaseN(10.75,2)#
  20. </CFOUTPUT>
  21. <H3>InputBaseN Example</H3>
  22. <P>InputBaseN returns the number obtained by converting
  23. a string using the base specified by Radix, an integer ranging
  24. from 2 to 36.
  25.  
  26. <CFOUTPUT>
  27. <BR>InputBaseN("1010",2): #InputBaseN("1010",2)#
  28. <BR>InputBaseN("3ff",16): #InputBaseN("3ff",16)#
  29. <BR>InputBaseN("125",10): #InputBaseN("125",10)#
  30. <BR>InputBaseN(1010,2): #InputBaseN(1010,2)#
  31. </CFOUTPUT>
  32.  
  33. </BODY>
  34. </HTML>       
  35.