Unit conversion from cubic meters to US gallons seems off
Issue #922
resolved
Using built in units:
(meter ^ 3) / gallon_US
= 264.20079260237780713342
Using NIST handbook values, 61023.74in^3 per m^3, 231in^3 per gal
61023.74/231
= 264.17203463203463203463
Comments (7)
-
repo owner -
repo owner - changed component to mathengine
- changed milestone to 1.0
-
It seems like I forgot to type all the digits...
UNIT_CACHE(US_gallon, HNumber("3.785") * liter())
should have been
UNIT_CACHE(US_gallon, HNumber("3.785411784") * liter())
For the record though: 1 m³ = 61023.74 in³ is not exact. The exact definition comes from 1 in = 2.54 cm.
-
repo owner -
assigned issue to
-
assigned issue to
-
repo owner Issue
#934was marked as a duplicate of this issue. -
- changed status to resolved
Fix issue
#922→ <<cset b955acfee1de>>
-
Fixed it now. Sorry, kinda lost track of it.
- Log in to comment
OP’s point looks correct on first sight. Needs further investigation.