Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Float and Double precision representations



Hi,

I am developing an open source C library data/ network protocol that will be cross platform for MacOSX, Win32, Win64, Linux, and Solaris.

The aim is to transmit floating point numbers in the same format used by Java virtual machines in the Class File Format (see Java Virtual Machine Specification 2nd Edition Sections 4.4.4 and 4.4.5).

The problem arises when a server converts a native (platform specific) float or double into the Java format, transmits it, and the client converts it back to the client's native float or double format that there can be a loss of information such as precision.

Does anyone know if and how the above mentioned platforms differ in native floating point number representations?

Are there any cross platform libraries that deal with converting between platforms?

Regards,
Warwick Hall
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.