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/
- Re: temperature standard - g... H. Peter Anvin
- Re: temperature standard - g... James Sutherland
- Re: temperature standard - g... Charles Cazabon
- Re: temperature standard - g... Bill Pringlemeir
- Re: temperature standard - g... L. K.
- Re: temperature standard - g... Steffen Persvold
- Re: temperature standard - g... Chris Boot
- Re: temperature standard - g... Albert D. Cahalan
- Re: temperature standard - g... H. Peter Anvin
- Re: temperature standard - g... Albert D. Cahalan
- Re: temperature standard - g... H. Peter Anvin
- Re: temperature standard - g... L. K.
- Re: temperature standard - global config option? Chris Adams
- RE: temperature standard - global config option? Leif Sawyer
- Re: temperature standard - global config option? Michael H. Warfield
- RE: temperature standard - global config option? L. K.
- RE: temperature standard - global config option? Randal, Phil
- RE: temperature standard - global config option? Richard B. Johnson
- Re: temperature standard - global config option? Richard J Moore
- Re: temperature standard - global config option? Lauri Tischler
- Re: temperature standard - global config opti... Kai Henningsen