Whatever message this page gives is out now! Go check it out!

InputBaseN

Last update:
May 18, 2026

Description

Converts string, using the base specified by radix, to an integer.

Returns

A number in the range 2-36, as an integer.

Category

Function syntax

InputBaseN(string, radix)

See also

Parameters

Parameter
Description
string
A string or a variable that contains one. String that represents a number, in the base specified by radix.
radix
Base of the number represented by string, in the range 2-36.

Example

<h3>InputBaseN Example</h3> 

<p>FormatBaseN converts a number to a string in the base specified by Radix. 
<p> 
<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> 
<h3>InputBaseN Example</h3> 
<p>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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page