Carlo Q

Results 17 comments of Carlo Q

BTW - If you want to force the conversion manually, both of the following work (they generate a new Qty object with the units set to 'kg'. ``` var amount...

In the case of mmol/l to mg/dl conversion, the missing step that's assumed is multiplying by the molecular weight of glucose g/mol. Does js-quantities handle units during multiplication and division?...

yes! This would be a much appreciated feature! Is it challenging? Honestly, I'm just checking this library out for the first time. We're about to bake unit handling into our...

Yeah, I realized that I could use toString() to serialize and deserialize Qty objects after my last post. I made an [atmosphere package](https://atmospherejs.com/fathom/quantities) to use js-quantities in a Meteor app....

So I made a [fork](https://github.com/studioFATHOM/js-quantities) that automatically detects if EJSON is being used and adds support for automatic detection/serialization/deserialization of Qty objects. ```javascript var ejson = require('ejson'); var qty =...

I created an npm module [`ejson-extras`](https://www.npmjs.com/package/ejson-extras) that extends EJSON to support automatic serialization and deserialization of Qty objects.

I created an npm module [`ejson-extras`](https://www.npmjs.com/package/ejson-extras) that extends EJSON to support Maps (and more) types.