gabor_private_calculator
v1.4.0
Published
This file contains four basic arithmetic functions: `sum`, `multiply`, `divide`, and `subtract`. Each function takes two parameters and returns the result of the corresponding arithmetic operation.
Downloads
1
Readme
Index.js
This file contains four basic arithmetic functions: sum
, multiply
, divide
, and subtract
. Each function takes two parameters and returns the result of the corresponding arithmetic operation.
Functions
sum(a, b)
This function takes two numbers as parameters and returns their sum.
Parameters:
a
(Number): The first number.b
(Number): The second number.
Returns:
- (Number): The sum of
a
andb
.
multiply(a, b)
This function takes two numbers as parameters and returns their product.
Parameters:
a
(Number): The first number.b
(Number): The second number.
Returns:
- (Number): The product of
a
andb
.
divide(a, b)
This function takes two numbers as parameters and returns the result of dividing a
by b
.
Parameters:
a
(Number): The numerator.b
(Number): The denominator.
Returns:
- (Number): The result of dividing
a
byb
.
subtract(a, b)
This function takes two numbers as parameters and returns the result of subtracting b
from a
.
Parameters:
a
(Number): The minuend.b
(Number): The subtrahend.
Returns:
- (Number): The result of subtracting
b
froma
.
Exports
All four functions are exported as an object at the end of the file.