Function subBig

  • Subtracts two big values and returns the result as a new Big instance.

    Parameters

    • a: Big

      The first Big instance.

    • b: Big

      The second Big instance.

    • Optional mutable: boolean = false

      Whether to mutate the first Big instance. Defaults to false.

    Returns Big

    The result of the subtraction.

    Example

    subBig(new Big(1), new Big(2)); // new Big instance with value -1
    subBig(new Big(1.1), new Big(2.2)); // new Big instance with value -1.1

Generated using TypeDoc