inputBaseN

Converts string, using the base specified by radix, to an
integer. For example: #inputBaseN("3ff",16)#

inputBaseN(String, radix) → returns Numeric

inputBaseN Argument Reference

String String
Required

radix String
Required

Examples sample code invoking the inputBaseN function


Tag Example

InputBaseN returns the number obtained by converting a string, using the base specified by Radix,.

<cfoutput> 
 <br>inputBaseN("1010",2): #inputBaseN("1010",2)# 
 <br>inputBaseN("3ff",16): #inputBaseN("3ff",16)# 
 <br>inputBaseN("125",10): #inputBaseN("125",10)# 
 <br>inputBaseN(1010,2): #inputBaseN(1010,2)# 
 </cfoutput>

Fork me on GitHub