🚀 DAY 2 OF LAUNCH WEEK: Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies.Learn more →
Socket
Book a DemoInstallSign in
Socket

@creately/round-n

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creately/round-n

Round numbers by any number.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
-100%
Maintainers
4
Weekly downloads
 
Created
Source

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...

FAQs

Package last updated on 09 Oct 2018

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