Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class containing a bunch of helper methods for commonly used number interactions and other methods as
shortcuts.

Hierarchy

  • NumberUtil

Index

Properties

Static ZERO

ZERO: number = 0

Variable for the number zero.

static

Static ZERO_STRING

ZERO_STRING: string = "0"

Variable for the number zero in string form.

static

Methods

Static formatNumberAsTwoCharacterString

  • formatNumberAsTwoCharacterString(num: number): string
  • Formats a number to a string in the format: NN. If a number less than 10 is provided, prepends the number 0 and
    then returns, otherwise returns the number as a string.

    static

    Parameters

    • num: number

      The number to convert to a two number string.

    Returns string

    A string in the NN format.

Constructors

constructor

Generated using TypeDoc