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

JavaScript library for quantity calculation and unit conversion

Results 59 js-quantities issues
Sort by recently updated
recently updated
newest added

Trying to parse the pint unit before the point unit makes the point and meters incompatible. For some reason, the signature of point and pint always matches and depends on...

This test passes ``` it("should compare properly", function() { var galQty = Qty("1 gal"); var qtQty = Qty("4 qt"); expect(galQty.eq(qtQty)).toBeTrue(); }); ``` However, for more complex units it fails: ```...

There are numerous libraries out there (sugarjs, prototypejs) that extend the `Array` prototype. The `simplify` function in js-quantities relies on setting/checking properties on an array instance, which means that it's...

When simplifying numerators/denominators, js-quantities uses an array as both an array and an object, setting properties on it. This makes js-quantities incompatible with libraries that extend `Array.prototype`, like sugarjs and...

Hi, Thanks a lot for that library. Looks very useful for now. I would like to know the best way to pick a "best" unit for human readable value. I...

This adds hundredweight units to js-quantities. These are weird units, but are used in some specific industries. * Definitions: https://en.wikipedia.org/wiki/Hundredweight * Implementation in other unit conversion library (Python Pints): https://github.com/hgrecco/pint/blob/master/pint/default_en.txt#L579

https://en.wikipedia.org/wiki/Elementary_charge

I was wondering if js-quantities is compatible with the [UCUM](https://ucum.nlm.nih.gov/)? There an [online validator](https://ucum.nlm.nih.gov/ucum-lhc/demo.html) for UCOM that accepts a CSV for bulk uploads. I thought about making a CSV from...

Hi, first of all thanks for this. Is super helpful and looks super complete! I was reading the issues and search in all repo but I didn't see any references...