InputBaseN
Converts a string, using the base specified by radix, to an integer.
Method Signature
Arguments
Argument
Type
Required
Description
Default
string
string
true
The string to convert to an integer.
radix
integer
true
Base of the number represented by string, in the range 2-36.
Examples
Binary string to decimal
Result: 10
Hexadecimal string to decimal
Result: 1023
Decimal string to decimal
Result: 125
Binary number to decimal
Result: 10
Additional Examples
Related
Last updated
Was this helpful?