Socket
Book a DemoInstallSign in
Socket

node-maths

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-maths

Node-Maths is a Node.js module that you can use mathematics in any field, any time, unlimitedly.

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

node-maths

downloadsBadge versionBadge

npm installnfo

Node-Maths is a Node.js module that you can use mathematics in any field, any time, unlimitedly.

Installation

npm install --save node-maths

Usage

const { Maths } = require('node-maths');
const math = new Maths;

console.log(math.collect(5,2)) //7

Math Operations

//Add between 2 numbers.
math.collect(5,7) //12

//Subtract between 2 numbers.
math.subtraction(7,5) //2

//Calculates the square of a number.
math.squares(4) //16

//It solves a problem.
math.problem(5%8/2*3-8%5-2*5%2) //4,5

//Rounds a number to the number closest to it.
math.round(11.4) //11
math.round(11.5) //12

//Divides the two numbers together.
math.divide(10,2) //2

//Multiplies two numbers.
math.multiplicat(10,2) //20

//Finds the smallest common multiple between two numbers.
math.scf(10,2) //10

//Finds the biggest common divisor between two numbers.
math.bcf(10,2) //2

Keywords

maths

FAQs

Package last updated on 21 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.