- Index
- »
- axon
- »
- func:toRadix
def
func:toRadix
toRadix(val, radix, width: null)
Convert a number to its string representation in the given radix (base). If width is non-null, then leading zeroes are prepended to ensure the specified width.
Example:
6.toRadix(2) => "110" 255.toRadix(16, 4) => "00ff"