subtract

Modified on Tue, 22 Aug 2023

Description

Subtract one number from another

Syntax

subtract(first, second)

Parameters

Input ParameterTypeDescription
firstnumberThe number to be subtracted from
secondnumberThe number to subtract

Return value

Type
number

Sample

ExampleResultDescription
subtract(10, 5)5Returns the difference between the two input numbers

To view all the Math and Number functions, click here.