Class ScientificInternal

Loosely resembles scientific

A scientific number with coefficient and base10Exponent corresponds to the number

coefficient * 10 ^ base10Exponent

Invariants

  • if coefficient is 0, then base10Exponent is 0.

  • Otherwise, coefficient has no trailing 0s

Constructors

  • Parameters

    • coefficient: bigint

      the coefficient

    • Optional base10Exponent: bigint

      the base 10 exponent (0 if not provided)

    Returns Scientific

Properties

base10Exponent: bigint
coefficient: bigint

Methods

  • toString() returns

    <coefficient>e<base10Exponent>
    

    if base10Exponent is nonzero, and

    <coefficient>
    

    otherwise.

    Returns string

Generated using TypeDoc