• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Float and Double precision representations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Float and Double precision representations


  • Subject: Float and Double precision representations
  • From: Warwick Hall <email@hidden>
  • Date: Thu, 19 May 2005 20:48:29 +1000

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Float and Double precision representations
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: Bsd sockets and GCC 4.0
  • Next by Date: Building CF-Lite on Linux
  • Previous by thread: Re: Filesystem View
  • Next by thread: Re: Float and Double precision representations
  • Index(es):
    • Date
    • Thread