Decoding single precision bytes

John Van Ostrand john at vanostrand.com
Fri Nov 7 08:23:06 PST 2014


Hi,

The log import I'm writing has floats stored in the file in binary format.
Are floats portable enough to reference directly, like this:

start_cns = *(float *) buf;

-- 
John Van Ostrand
At large on sabbatical
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141107/2ae46a0f/attachment.html>


More information about the subsurface mailing list