Subject: [Boost-bugs] [Boost C++ Libraries] #11335: units: [patch] Improve precision of mmHg conversion to Pascal
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-22 20:10:49
#11335: units: [patch] Improve precision of mmHg conversion to Pascal
------------------------------------+-----------------------------
Reporter: Roger Leigh <rleigh@â¦> | Owner: matthiasschabel
Type: Patches | Status: new
Milestone: To Be Determined | Component: units
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------------+-----------------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11335> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC