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

I was wondering whether it is possible to define a new unit as in ruby-units (`Unit.define`), without changing the source code (that is, the variable `UNITS` in `definitions.js`)? For example,...

In some cases it is necessary to 'divide with temperatures'. For example, the SI unit for thermal conductivity is watts per meter-kelvin, i.e. W/(m*K). But I get an exception when...

In some cases it is necessary to 'divide with temperatures'. For example, the SI unit for thermal conductivity is watts per meter-kelvin, i.e. W/(m*K). But I get an exception when...

I noticed there's no definition for pH.

I'm looking for a way to extract (the names of) all the units available in the library, e.g. "m", "meter", "meters", "metre", "metres", "in, "inch", "inches". Is it possible to...

I have been working js quantities into an application I am developing and ran into wanting being able to use toString to return only the scalar and not the number....

Currently it seems `.numerator` and `.denominator` are used internally for consistency checking. However it would be useful to easily have access to the units of the numerator or denominator. My...

bug

In order to 'normalize' the user entered quantities in a database I create a JSON that contains 2 properties: * SI: the value in SI * unit: the unit in...

MPG and L/100KM mpg and l/100km ~~Conversion base : 1 l/100km = 235.2145833 mpg ~~ ~~Conversion base : 1 mpg = 235.2145833 l/100km~~ ~~More information here. https://www.unitjuggler.com/convert-fuelconsumption-from-lper100km-to-mpgimperial.html?val=14~~ Edit: More Info...