project-1a-maths

1.1.0 • Public • Published

Math Operations

Module to do simple math operations

Installation

Follow this instructions

npm install project-1a-maths

Use

Follow this instructions

// Import the module
const mathModule = require('.');

// Sums
console.log(mathModule.sum(1, 2)); // Expects: 3

console.log(mathModule.sum(1, 34)); // Expects: 35

// Substracts
console.log(mathModule.substract(11, 24)); // Expects: -13

console.log(mathModule.substract(1, 2)); // Expects: -1

// Multiplication
console.log(mathModule.multiply(11, 24)); // Expects: 24

console.log(mathModule.multiply(1, 2)); // Expects: 2

// Division
console.log(mathModule.multiply(1, 4)); // Expects: 0.25

console.log(mathModule.multiply(1, 2)); // Expects: 0.5

/project-1a-maths/

    Package Sidebar

    Install

    npm i project-1a-maths

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.35 kB

    Total Files

    4

    Last publish

    Collaborators

    • jeanstkng