|
Boost Users : |
Subject: Re: [Boost-users] [units] "Simple" conversion from Kelvin to Celsius
From: Jason Roehm (jasonr_at_[hidden])
Date: 2013-08-14 15:45:28
On 08/14/2013 03:39 PM, Michael Powell wrote:
> Hello,
>
> It's been a couple of years since I've done any work with Boost.Units,
> and I am finding that I want to make a dimensionally-safe conversion
> from Kelvin to Celsius.
>
> I've got an I2C controller that reports in Kelvin, but I want to
> report it to the end-user in Celsius.
>
> The examples I am finding seem to "almost" fit the bill, but I am
> having a difficult time extrapolating a sane conversion.
>
> First, would help if I understood what the Boost.Units SI (my assumed
> base-system) base-temperature units were. I gather Fahrenheit? Or is
> it indeed Kelvin? I could be mistaken.
>
The SI system uses Kelvin as its temperature unit. This is reflected in
the Boost.Units documentation here:
Jason
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