New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mathools/round

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathools/round

some very usefull math tools

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@mathools/round

License Email Donate Donate

@mathools round module for approximations calcs

Installing

For install library is easy to install by cloning the repo. You can install trhought npm too: Local installation

npm install @mathools/round

Global installation

npm install -g @mathools/round

Contains

  • Round round(number, decimals=0, pass=10) => the number rounded at pass with decimals approximation

  • Floor floor(number, decimals=0, pass=10) => the number rounded down at pass with decimals approximation

  • Ceil ceil(number, decimals=0, pass=10) => the number rounded up at pass with decimals approximation

  • Trunc trunc(number) => truncate the number loosing all decimals

  • Round (Float 32) roundf32(number) => round the number to the nearest float32 number

  • Circular circular(number, min, max, inclused) => costrain a number to stay between min and max (if inclused is tru min and max are inclused (>=min, <=max), else are rejected (>min, <max))

Contacts

If you like the project feel free to contact me on my Email.

Something gone wrong? Feel free to rise an issue!

Did you like this project and it was usefull? Help me improve my work:

Donate Donate

Keywords

math

FAQs

Package last updated on 08 Feb 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