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

Ben Greear greear at cyberhighway.net
Sun Sep 6 22:06:47 CEST 1998


What is the standard way (if there is one) to encode floating
point numbers (double too I guess) into bytes for transport accross
the network.

I'm using c++, on both ends (encode/decode).

It would seem like there would be a method to do this somewhere!

Thanks,
Ben

Ben Greear (greear at cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html





More information about the mud-dev-archive mailing list