/basic_maths

Basic math operations. Add, substract, multiply and divide.

Primary LanguageJavaScriptMIT LicenseMIT

Basic math methods

travis test GitHub issues GitHub last commit npm NPM

const maths = require("basic-maths");
// or
import maths from "basic-maths";

const add = maths.add(1, 2);
const substract = maths.substract(1, 2);
const multiply = maths.multiply(1, 2);
const divideGood = maths.divide(1, 2); // Good
const divideBad = maths.divide(1, 0); // Bad. No number is divisible by zero

GitHub code size in bytes npm GitHub forks GitHub stars jsDelivr GitHub contributors npm collaborators

CNDs

jsDelivr