divide-remainder
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

divide-remainder Travis CI Build Status

Divide a number and get a quotient and remainder.

NPM Badge

Install

npm install divide-remainder

Usage

const divideRemainder = require("divide-remainder");
 
const { quotient, remainder } = divideRemainder(5, 2);
 
console.log(quotient);
//=> 2
 
console.log(remainder);
//=> 1

API

divideRemainder(number, divisor)

number

Type: number

The number to divide.

divisor

Type: number

The number to divide by.

Package Sidebar

Install

npm i divide-remainder

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.38 kB

Total Files

6

Last publish

Collaborators

  • richienb