Followup to:  <[EMAIL PROTECTED]>
By author:    "Albert D. Cahalan" <[EMAIL PROTECTED]>
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
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to