FormatBaseN
Converts a number to a string representation in the specified base.
Method Signature
FormatBaseN(number=[numeric], radix=[integer])Arguments
Argument
Type
Required
Description
Default
number
numeric
true
radix
integer
true
Examples
Format 10 as dual number
formatBaseN( 10, 2 );
Result: 1010
Format 1024 as hexadecimal number
Result: 400
Format 125 as decimal number
Result: 125
Format a float
Floors float to integer then formats with radix given
Result: 1010
Additional Examples
Related
Last updated
Was this helpful?
