lkml.org 
[lkml]   [2001]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: temperature standard - global config option?
Date
Chris Boot writes:

>>>> Kelvins good idea in general - it is always positive ;-)
>>>>
>>>> 0.01*K fits in 16 bits and gives reasonable range.
...
> OK, I think by now we've all agreed the following:
> - The issue is NOT displaying temperatures to the user, but a userspace
> program reading them from the kernel. The userspace program itself can
> do temperature conversions for the user if he/she wants.
> - The most preferable units would be decikelvins, as the value can give a
> relatively precise as well as wide range of numbers ranging from absolute
> zero to about 6340 degrees Celsius ((65535 / 10) - 273) which is well
> within anything that a computer can operate. It also gives us a good
> base for all sorts of other temperature sensing devices.
>
> Do we all agree on those now?

I nearly do.

There isn't any need to cram the data into 16 bits.
The offset to Celsius is 273.15 degrees.
So hundredths of a degree, in Kelvin, is a better choice.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.053 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site