Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::units - converting from one derived_dimension to another across systems (imperial to metric)
From: degski (degski_at_[hidden])
Date: 2018-11-20 14:47:28


On Tue, 20 Nov 2018 at 12:37, degski <degski_at_[hidden]> wrote:

> On Tue, 20 Nov 2018 at 10:31, degski <degski_at_[hidden]> wrote:
>
>> The new value [as of 20 May 2019] of the Planck constant by the ISO
>> standard is set to 6.626 070 150 x 10-34 Jâ‹…s.
>>
>
> The currently defined value is:
>
> /// Planck constant
>
> BOOST_UNITS_PHYSICAL_CONSTANT(h,quantity<energy_time>,6.62606896e-34*joule*seconds,3.3e-41*joule*seconds);
>
> Hmmm, that's not a fun problem, thinking about it [in terms of Boost
> releases of before and after 20th of May 2019].
>

The "new" Planck constant works pretty well with IEEE754, it [6.626 070 150
x 10-3] will be represented as 6.62607014999999983e-34, so not bad.

degski

-- 
*“If something cannot go on forever, it will stop" - Herbert Stein*


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net