6.1.0 • Published 2 years ago
@wezom/toolkit-math v6.1.0
@wezom/toolkit-math
Useful math tools
Statements | Branches | Functions | Lines |
---|---|---|---|
Table of Content:
Tools
mathRound()
comment: <> (AUTODOC-TOOL-START::round#default)
Correction of rounding of decimal fractions.
Parameters:
Name | Data type | Argument | Default value | Description |
---|---|---|---|---|
value | number | some value | ||
exp | number | optional |
Returns: number
comment: <> (AUTODOC-TOOL-END)
mathSum()
comment: <> (AUTODOC-TOOL-START::sum#default)
Calculates the sum of all arguments
Parameters:
Name | Data type | Argument | Default value | Description |
---|---|---|---|---|
numbers | ...number[] |
Returns: number
Examples:
mathSum(1, 3, 5); // => 9
mathSum(1.01, 1.02); // => 2.03
comment: <> (AUTODOC-TOOL-END)
Contributing
Please fill free to create issues or send PR