Function addBig

  • Adds two big values.

    Parameters

    • a: Big

      The first value to add.

    • b: Big

      The second value to add.

    • Optional mutable: boolean = false

      Whether to mutate the first value. Defaults to false.

    Returns Big

    The sum of the two values.

    Example

    addBig(new Big(1), new Big(2)); // new Big instance with value 3
    addBig(new Big(1.1), new Big(2.2)); // new Big instance with value 3.3
    addBig(new Big(1.1), new Big(2)); // new Big instance with value 3.1

Generated using TypeDoc