Opened 7 years ago

#11335 new Patches

units: [patch] Improve precision of mmHg conversion to Pascal

Reported by: Roger Leigh <rleigh@…> Owned by: Matthias Schabel
Milestone: To Be Determined Component: units
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

See attached patch.

The conversion factor used by the existing code only used three decimal places. However, the standardised conversion factor is 9 decimal places, and is also used in GNU units. Changing to use the full 133.322387415 significantly improves accuracy.

I can't put a link in the report since it makes the ticket get rejected as spam, but see the first paragraph of the "Millimeter of mercury" wikepedia page, and GNU units for reference.

Defect is in the latest boost back to at least 1.55.

Please consider applying the attached patch.

Thanks, Roger

Attachments (1)

0001-base_units-mmHg-Improve-precision-for-Pascal-convers.patch (1.0 KB ) - added by Roger Leigh <rleigh@…> 7 years ago.
Patch to improve accuracy of mmHg to Pascal conversion

Download all attachments as: .zip

Change History (1)

by Roger Leigh <rleigh@…>, 7 years ago

Patch to improve accuracy of mmHg to Pascal conversion

Note: See TracTickets for help on using tickets.