Re: temperature standard - global config option?

H. Peter Anvin
2001-06-09T08:44:29Z

Followup to: <200106090800.f5980i101507@saturn.cs.uml.edu>
By author: "Albert D. Cahalan" <acahalan@cs.uml.edu>
In newsgroup: linux.dev.kernel
>
> I hope you don't think people would assume that a "float" always
> has useful data in all 23 fraction bits. It is a similar case.
>
> So here you go, a kernel-safe conversion from C to K. It works
> from 0 to 238 degrees C. Print as hex, so user code can toss it
> into a union or maybe abuse scanf. Adjust as needed for F to K
> or for hardware with greater resolution.
>

I hope you're not seriously suggesting we're using floats for this...

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."