In article
<99d4a2cb-6ea2-4e09-b2fc-f2177be1a612@q9g2000yqc.googlegroups.com>,
> Hey,
>
> Where can I download the source code for the native methods in java
> like the "floatToIntBits" method in Float.java?
Not that you need it, but: <http://openjdk.java.net/>
> I'm actually trying to read/write real data types (float/double), in
> binary format on to a stream, across java and c++. For this I was
> trying to look at the format that java uses to write float/double on
> to the stream.
Single-precision IEEE 754 floating-point (32-bit)/double-precision IEEE
754 floating-point (64-bit) (<http://en.wikipedia.org/wiki/IEEE_754>)
> Does anyone know of any known implementation(s) that handle reading/
> writing of real data types in a language and platform independent way.
For true platform independence, that problem is really, really, hard.
AFAIK, your best bet still is ASCII here.
However, for nowadays-almost platform independence, writing IEEE floats
in binary is good enough. You probably will still run into trouble with
endianness (<http://en.wikipedia.org/wiki/Endianness>), but that is easy.
Reinder
>Hey,
>
>Where can I download the source code for the native methods in java
>like the "floatToIntBits" method in Float.java?
see http://mindprod.com/jgloss/jdk.html for a link to the source code.
see http://mindprod.com/jgloss/iee754.html for the format if you want
to write your own code from scratch or are just curious about the
format. That entry has an overview of the format and links to
detailed specs.

Signature
Roedy Green Canadian Mind Products
http://mindprod.com
"It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change."
~ Charles Darwin