If |
Number.toPaddedString returns |
NumDigits is smaller than the length of the string
resulting from rounding the number to the nearest integer
(Math.round(object).toString().length) |
A string containing the original number rounded to the nearest integer. |
NumDigits is larger than the length of the string
resulting from rounding the number to the nearest integer |
A string containing the original number rounded to the
nearest integer with enough zeros to make the string NumDigits characters wide. |
NumDigits is not a positive integer |
"Input Error" |