5.0.0 • Published 1 month ago
onedionys-math-utilities v5.0.0
💾 Requirements
Web Browser
- Can be used as an emulator to build applications. Example Chrome, Firefox, Safari & Opera.Internet
- Because many use CDN and to make it easier to find solutions to all problems.
🎯 How To Use
Example Syntax
const mathUtils = require('math-utilities');
// Add two numbers
console.log(mathUtils.add(2, 3)); // Output: 5
// Subtract two numbers
console.log(mathUtils.subtract(5, 3)); // Output: 2
// Multiply two numbers
console.log(mathUtils.multiply(2, 3)); // Output: 6
// Divide two numbers
console.log(mathUtils.divide(6, 3)); // Output: 2
console.log(mathUtils.divide(6, 0)); // Output: "Error: Division by zero"
Explanation
add(a, b)
: Returns the sum of two numbers.subtract(a, b)
: Returns the difference of two numbers.multiply(a, b)
: Returns the product of two numbers.divide(a, b)
: Returns the quotient of two numbers. If the divisor is zero, it returns "Error: Division by zero".
Return Value
- For
add
,subtract
, andmultiply
, the return value is the result of the corresponding mathematical operation. - For
divide
, if the divisor is not zero, the return value is the quotient of the two numbers. If the divisor is zero, it returns "Error: Division by zero".
📆 Release Date
- v1.0.0 : 07 March 2024
- v1.0.1 : 11 March 2024
- v4.0.0 : 11 March 2024
- v4.0.1 : 13 March 2024
- v4.0.2 : 18 March 2024
- v5.0.0 : 31 March 2024
🧑 Author
- Facebook : Oned Ionys
- Instagram : @onedionys
- Twitter : @onedionys
- LinkedIn : @onedionys
📝 License
- Copyright © 2024 One Dionys
- One Dionys - Math Utilities is an open source project licensed under the MIT license
☕️ Suppport & Donation
Love One Dionys - Math Utilities? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys