formatBaseN

String Converts number to a string, in the base specified by
radix. For example: #formatBaseN(1024,16)#

formatBaseN(number, radix) → returns String

formatBaseN Argument Reference

number
Required

radix
Required

Examples sample code invoking the formatBaseN function


Script Syntax

<cfoutput> 
 <br>formatBaseN(10,2): #formatBaseN(10,2)# 
 <br>formatBaseN(1024,16): #formatBaseN(1024,16)# 
 <br>formatBaseN(125,10): #formatBaseN(125,10)#  
 <br>formatBaseN(10.75,2): #formatBaseN(10.75,2)# 
 </cfoutput>   

Fork me on GitHub