Re: "byte orders" question
Re: "byte orders" question
- Subject: Re: "byte orders" question
- From: Scott Ribe <email@hidden>
- Date: Mon, 28 Nov 2011 06:54:37 -0700
On Nov 28, 2011, at 1:41 AM, Andreas Grosam wrote:
> This will only work if we can safely assume the sender is using 4 byte floats. This cannot be guaranteed, since the size of floats is platform dependend. So, *if possible* I would recommend to send these floats as decimal strings and then convert these number strings to whatever math type appropriate on the receiver site.
While possible, it's highly unlikely these days to get data from a platform that doesn't adhere to float is IEE 32-bit and double is IEE 64-bit. Plus conversion to/from strings is likely to be subject to roundoff errors unless you're really careful.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden