format
Formats digits according settings: sign, pad, padZero, radix and capital.
Return
string representation of number according to format.
Parameters
negative
indicates that the source number is negative.
initValue
initial value to pass into getDigit.
getDigit
returns pair with value to process and next digit or null if the end of number reached.