Number.to_radix

Number.to_radix

Number.to_radix

Function

Format an integer into a string according to the specified base.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
radixIntNo10Target base; currently supports 2, 8, 16, other values return decimal strings.

Return value

TypeDescription
StringReturns the converted string.

Example

Notes

  • Integer values will be rounded according to BT relaxed rules before conversion.