| Contents > CFML Reference > ColdFusion Functions > InputBaseN |
|
|
|
|
||
Converts string, using the base specified by radix, to an integer.
A number in the range 2-36, as a string.
InputBaseN(string, radix)
Parameter |
Description |
|---|---|
string |
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 |
<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>
|
|
||
| Contents > CFML Reference > ColdFusion Functions > InputBaseN |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funct119.htm