MACROMEDIA COLFUSION MX 7-CFML Reference page 657

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

InputBaseN
Description
Converts string, using the base specified by radix, to an integer.
Returns
A number in the range 2-36, as a string.
Category
Mathematical functions
Function syntax
InputBaseN(string, radix)
See also
FormatBaseN
Parameters
Parameter
string
radix
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>
Description
A string or a variable that contains one. String that represents a number, in the base
specified by
radix.
Base of the number represented by
, in the range 2—36.
string
InputBaseN
657

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents