Numeral-js icon indicating copy to clipboard operation
Numeral-js copied to clipboard

Formatting imperial units (e.g. feets and inches)

Open subhog opened this issue 9 years ago • 4 comments

I've got a sad requirement of supporting non-metric units. For example, I've got a value which needs to be displayed in feets and inches (1ft = 12in), i.e.

64 => 5' 4"

Since all the other situations are handled extremely well with Numeral, it would be great if it handle this case as well. Either that, or get USA to switch to metric finally, whichever is easier :-)

subhog avatar Jan 20 '16 13:01 subhog

It would be great if this could include area, mass/weight and volume as well in addition to imperial length. https://en.wikipedia.org/wiki/Imperial_units#Units

svanzoest avatar Dec 13 '16 04:12 svanzoest

Any news on this issue ?

martinezguillaume avatar Sep 20 '17 13:09 martinezguillaume

any updates? I am also need a converter between Liter and Oz. When to show 250ml and when 8Oz based on device locale (I am writing in RN app for iOS and Android devices)

b-asaf avatar Feb 25 '18 19:02 b-asaf

Any updates? Convert units based on user locale.

silentwraith6 avatar Aug 24 '20 05:08 silentwraith6