matician - v2.0.0
    Preparing search index...

    Function subtract

    • Subtracts the second number from the first.

      Parameters

      • a: number

        The number to subtract from (minuend).

      • b: number

        The number to subtract (subtrahend).

      Returns number

      The result of a - b.

      subtract(10, 3);  // returns 7
      subtract(3, 10); // returns -7
      subtract(-5, -2); // returns -3