subtract()

Finds the difference of two numbers.

This function is valid in v2.12.0 to v2.24.3. This function has been downloaded 64 times.

Parameters

{number} number1
Number to be subtracted from number2.
{number=} number2 Optional
Number to subtract from number1.

Returns

{number|Function}
If number1 and number2 are given the difference of the two will be returned. Otherwise a partial function will be returned which when called will accept one number and will return the number passed to the partial function subtracted from number1.

Required Function

This function directly requires the following function which is included automatically:

  • lt()
    Determines if one value is less than another value.

Requiring Function

This function is directly required by the following function:

  • lt()
    Determines if one value is less than another value.