Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion of compound units gives wrong result #106

Open
shrdlu9-lab opened this issue Jul 9, 2020 · 0 comments
Open

Conversion of compound units gives wrong result #106

shrdlu9-lab opened this issue Jul 9, 2020 · 0 comments

Comments

@shrdlu9-lab
Copy link

I noticed that converting some compound units from SI/US produces wrong results.
Here is an example with mass per area:

var qty = new Qty(657.5, 'kg/m^2');
qty.to('lb/sqft');

This results in 1449.54lbs/sqft.
The correct result would be 134.6lbs/sqft.

Other examples include a unit of enthalpy 'kJ/m^2' converted to 'BTU/sqft'.
I assume this is due to wrong grouping: is there another way I can write the units so it will work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant