Advertisement

What Data Type to Send

Started by June 14, 2005 01:48 AM
2 comments, last by HopeDagger 19 years, 8 months ago
Hey guys, I've got a question I'm sure one of you guys can answer off the top of your head. Should I convert all of my variables (they are all doubles) to chars before I send my packet, then reconvert them back into doubles of the other side, or is this more trouble that it is worth. Thanks in advance.
My Current Project Angels 22 (4E5)
You cant do that anyway, you would lose accuracy. Just send doubles, or drop them down to floats.

ace
Advertisement
See, I knew someone could answer that right away. Thanks ace.
My Current Project Angels 22 (4E5)
It depends on how much space you'd like to save, and how much accuracy you need. :)

In one of my previous projects, I converted my floats to shorts (and multiplied by 100 to save two decimal places).

This topic is closed to new replies.

Advertisement