gtinoco-npm-lib-project-1a-math
v1.1.0
Published
Simple math project to learn how to create a nodejs library and publish it to npm
Downloads
4
Maintainers
Readme
Mathematical Operations - Operaciones matematicas
En - Module to perform simple math operations
Es - Modulo para realizar operaciones matematicas simples
Install
Please follow this instructions
npm install gtinoco-npm-lib-project-1a-math
Use
Follow the above instructions
// Import the module
const lib = require('gtinoco-npm-lib-project-1a-math')
// Additions
console.log('addition', lib.addition(1,3)); // 4
console.log('addition', lib.addition(91,3)); // 4
// Subtractions
console.log('subtraction', lib.subtraction(1,3)); // -2
console.log('subtraction', lib.subtraction(15,3)); // 12
// Multiplications
console.log('multiplication', lib.multiplication(1,3)); // 3
console.log('multiplication', lib.multiplication(0.5,3)); // 1.5
// Divisions
console.log('division', lib.division(1,3)); // 0.33333
console.log('division', lib.division(90,3)); // 30