Function absBig

  • Returns the absolute value of a Big instance.

    Parameters

    • big: Big

      The Big instance.

    • Optional mutable: boolean = false

      Whether to mutate the Big instance. Defaults to false.

    Returns Big

    The absolute value of the Big instance.

    Example

    absBig(new Big(-1)); // new Big instance with value 1
    absBig(new Big(-1.1)); // new Big instance with value 1.1
    absBig(new Big(1)); // new Big instance with value 1

Generated using TypeDoc