[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: Ben Greear <greear@cyberhighway.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 6 Sep 1998 22:06:47 -0700 (MST)
Organization: Kanga.Nu
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@cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html