[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?

Adam J. Thornton adam at phoenix.Princeton.EDU
Wed Sep 9 16:07:15 CEST 1998


On Wed, Sep 09, 1998 at 10:26:19AM -0700, J C Lawrence wrote:
> > It would seem like there would be a method to do this somewhere!
> Yup: roll your own or rely on everybody using IEEE floats (which in
> the microcomputer (as versus mini or host) world is getting close to
> universal).

Or decide that you don't really need blinding speed, figure out how much
precision you need, and use sprintf()/sscanf().  This would be my tactic,
because I'm lazy.

Adam
--
adam at princeton.edu 
"There's a border to somewhere waiting, and a tank full of time." - J. Steinman




More information about the mud-dev-archive mailing list