Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Number

Hierarchy

  • Number

Index

Methods

toExponential

  • toExponential(fractionDigits?: number): string
  • Returns a string containing a number represented in exponential notation.

    Parameters

    • Optional fractionDigits: number

      Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.

    Returns string

toFixed

  • toFixed(fractionDigits?: number): string
  • Returns a string representing a number in fixed-point notation.

    Parameters

    • Optional fractionDigits: number

      Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.

    Returns string

toPrecision

  • toPrecision(precision?: number): string
  • Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.

    Parameters

    • Optional precision: number

      Number of significant digits. Must be in the range 1 - 21, inclusive.

    Returns string

toString

  • toString(radix?: number): string
  • Returns a string representation of an object.

    Parameters

    • Optional radix: number

      Specifies a radix for converting numeric values to strings. This value is only used for numbers.

    Returns string

valueOf

  • valueOf(): number
  • Returns the primitive value of the specified object.

    Returns number