InputBaseN

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

InputBaseN( string, radix )

Returns: Number

Argument Description
string
string, required

String that represents a number, in the base specified by radix.

radix
number, required

Base of the number represented by string, in the range 2-36.

Examples

writeDump(InputBaseN("100100",2))//36 Binary to decimal format
	writeDump(InputBaseN("545",8))//357 Decimal to Octal format
	writeDump(InputBaseN("A",16))//10 Hexadecimal to decimal

See also