[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IEEE float



I would like to read/write single floats from/to a file (4 bytes, IEEE
Standard 754 format), and need to convert between the floats and a byte
vector, since (as far as I know) MCL does file i/o with bytes only.  This
is for implementing a TIFF image file read/write for floating point format.

Can anyone help?
Thanks
Dave

-------------------------------------------------------------
David S. Bright                        dbright@nist.gov
Microanalysis Research Group
Bldg. 222 (Chem.) A113
National Institute of Standards & Technology (NIST, formerly NBS)
Gaithersburg, MD 20899-0001   / USA
301-975-3911 (voice),  301-216-1134 (fax)
"You must have accurate and honest weights and measures, so that you may
live long in the land the Lord your God is giving you.",  Deuteronomy 25:15