<p dir="ltr"><br>
On Nov 7, 2014 8:23 AM, "John Van Ostrand" <<a href="mailto:john@vanostrand.com">john@vanostrand.com</a>> wrote:<br>
><br>
> Are floats portable enough to reference directly, like this:<br>
><br>
> start_cns = *(float *) buf;</p>
<p dir="ltr">Aside from byte ordering and alignment, generally yes. There are some random small details like denormals that different architecture might handle differently (round to zero etc), but that won't be an issue for any dive data.</p>
<p dir="ltr">And in theory other representations than just the standard IEEE one exists, but in practice no current hardware uses it, so it's not worth worrying about.</p>
<p dir="ltr">    Linus</p>