Math.subtract()

Subtract one number from another and return the difference.

Usage

Hover over inputs/exits for more info.

var Math = require('machinepack-math');


// Subtract one number from another and return the difference.

Math.subtract({

a: -20,

b: 2.2,

}).execSync();

Inputs

a required

The number to subtract from.

-20
b required

The number to subtract.

2.2

Exits

error

An unexpected error occurred.

success

OK.

-22.2