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 protected]
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to