@brainylab/numbers-utils
Numbers Utils
Numbers Utils
Create an array containing a range of elements (cfr. PHP's range)
Simple package to validate or format license plate
A light-weight library for verifying Nordic personal identification numbers (SNNs) with accuracy and ease.
A simple selection of the noun case by number
deep equals assertions with tolerance for chai (with fixed dependency on deep-eql)
Convert numbers to Lezgi numerals in your Node.js project or in browser using this ts/js library
Function takes an array of numbers and returns new array with numbers in numeric order
2 functions: one gives you 1 random integer within a chosen range, the other gives you many.
Function takes a float and returns the digits on the right of the decimal
Rounds number to specific number of digits before or after decimal
3 functions: getRounded(), getRoundedUp(), getRoundedDown()
Get the square root of any number! NERDS REJOICE!
3 functions: getSum(), getAverage(), getProduct()
2 functions that check if given integer is odd or even
Functions that check numbers and all return boolean
2 functions check if array of numbers is in ascending order or not
Checks if array of numbers is in numeric order
2 functions that return array of numbers in ascending order, and array of numbers in descending order, respectively.
Adds zeros to the end of a float if needed.