Converts number to a string, in the base specified by radix.
formatBaseN(number, radix)
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
number | numeric | Yes | The number to convert | |
radix | numeric | Yes | The base radix to use |
formatBaseN(10,2)
formatBaseN(1024,16)
formatBaseN(125,10)
Floors float to integer then formats with radix given
formatBaseN(10.75,2)