numbro
numbro copied to clipboard
Average for float number
Hiii,
At first glance, the average does not work on floats numbers.
I would have liked to be able to display 1µ with this kind of call:
console.log(numbro(0.000001).format({
average: true
})); // display : 0
A list of prefixes here : https://www.nist.gov/pml/weights-and-measures/metric-si-prefixes
I don't know if it's intentional or if it's an oversight. So I create a ticket <3
Have a nice day !