@creately/round-n
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

round-n

Round numbers by any number.

Examples

roundN

import { roundN } from '@creately/round-n';

roundN(113, 2.5) // 112.5
roundN(6, Math.PI) // 6.28...

ceilN

import { ceilN } from '@creately/round-n';

ceilN(113, 2.5) // 115
ceilN(6, Math.PI) // 6.28...

floorN

import { ceilN } from '@creately/round-n';

ceilN(113, 2.5) // 112.5
ceilN(6, Math.PI) // 3.14...

Readme

Keywords

none

Package Sidebar

Install

npm i @creately/round-n

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.4 kB

Total Files

7

Last publish

Collaborators

  • mehdhi
  • thisunravisara
  • chandika
  • shashik_thiwanka
  • sasindu
  • sajeeva
  • linatrefai
  • damithcgx