window.Number Class

Defined in: window.Number:7
Module: Core

Add methods to Number

Methods

toPaddedString

(
  • [totalDigits=2]
)
String

Defined in toPaddedString:12

Returns a string of the number as an integer with leading zeros to fill the string out to a certain number of digits.

Parameters:

  • [totalDigits=2] Number optional

    The total number of digits to be displayed.

Returns:

String:

The number string.