numbro icon indicating copy to clipboard operation
numbro copied to clipboard

Average for float number

Open Angelisium opened this issue 4 years ago • 0 comments

Hiii,

At first glance, the average does not work on floats numbers. I would have liked to be able to display 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 !

Angelisium avatar Feb 26 '22 21:02 Angelisium