Re: temperature standard - global config option?
H. Peter Anvin (email@example.com)
9 Jun 2001 01:43:42 -0700
Followup to: <firstname.lastname@example.org>
By author: "Albert D. Cahalan" <email@example.com>
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...
<firstname.lastname@example.org> at work, <email@example.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/