@mathools/round

@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
.
Something gone wrong? Feel free to rise an issue!
Did you like this project and it was usefull? Help me improve my work:
