<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] [CODE QUESTION] How to encode floats into bytes? -->
<!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> -->
<!--X-Date: Sun, 6 Sep 1998 22:09:37 -0700 -->
<!--X-Message-Id: Pine.LNX.3.96.980906215952.30075A-100000#shamen,cyberhighway.net -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] [CODE QUESTION] How to encode floats into bytes?</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:greear#cyberhighway,net">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">
<font size="+4" color="#804040">
<strong><em>MUD-Dev<br>mailing list archive</em></strong>
</font>
<br>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00975.html">Previous</a>
| <a href="msg00977.html">Next</a>
]
Thread:
[ <a href="msg00992.html">Previous</a>
| <a href="msg00978.html">Next</a>
]
Index:
[ <A HREF="author.html#00976">Author</A>
| <A HREF="#00976">Date</A>
| <A HREF="thread.html#00976">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] [CODE QUESTION] How to encode floats into bytes?</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: mud-dev <<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>></LI>
<LI><em>Subject</em>: [MUD-Dev] [CODE QUESTION] How to encode floats into bytes?</LI>
<LI><em>From</em>: Ben Greear <<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>></LI>
<LI><em>Date</em>: Sun, 6 Sep 1998 22:06:47 -0700 (MST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
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) <A HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A>
Author of ScryMUD: mud.primenet.com 4444
<A HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A>
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00994" HREF="msg00994.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>
<ul compact><li><em>From:</em> J C Lawrence <claw#under,engr.sgi.com></li></ul>
<li><strong><A NAME="00978" HREF="msg00978.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>
<ul compact><li><em>From:</em> "T. Alexander Popiel" <popiel#snugharbor,com></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00975.html">[MUD-Dev] (fwd) CODE RELEASE: [server] SlashMUD (MacOS mud server)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00977.html">[MUD-Dev] Re: Equipment Fit, enlightenment</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00992.html">[MUD-Dev] Adventure on the web</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00978.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00976"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00976"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="01001" HREF="msg01001.html">[MUD-Dev] Economics: Arrow's Impossibility Theorem</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 10 Sep 1998, 01:34 GMT
<LI><strong><A NAME="00999" HREF="msg00999.html">[MUD-Dev] PERL based MUDs</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 09 Sep 1998, 23:52 GMT
<LI><strong><A NAME="00998" HREF="msg00998.html">[MUD-Dev] A Java front end to ECGS (finally)</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 09 Sep 1998, 23:50 GMT
<LI><strong><A NAME="00992" HREF="msg00992.html">[MUD-Dev] Adventure on the web</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 08 Sep 1998, 21:01 GMT
<LI><strong><A NAME="00976" HREF="msg00976.html">[MUD-Dev] [CODE QUESTION] How to encode floats into bytes?</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 07 Sep 1998, 05:09 GMT
<UL>
<LI><strong><A NAME="00978" HREF="msg00978.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>,
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Mon 07 Sep 1998, 14:53 GMT
<UL>
<LI><strong><A NAME="00979" HREF="msg00979.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>,
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 07 Sep 1998, 16:06 GMT
<UL>
<LI><strong><A NAME="00981" HREF="msg00981.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 07 Sep 1998, 17:43 GMT
<UL>
<LI><strong><A NAME="00984" HREF="msg00984.html">[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?</A></strong>,
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Mon 07 Sep 1998, 18:07 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>