formatBaseN

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

formatBaseN(number, radix) → returns String

Argument Reference for the formatBaseN function

number

Required: Yes

radix

Required: Yes

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