A numeric base that will be used to convert val into a number.
Special formatting will be applied for binary, octal and hexadecimal to add base prefixes,
and should be omitted if a string value is passed.
Default Value
10
Optionalpadding
padding?:number
The amount of padding to add to the numeral representation.
A numeric base that will be used to convert
valinto a number. Special formatting will be applied for binary, octal and hexadecimal to add base prefixes, and should be omitted if a string value is passed.