<h1>Tech Notes</h1><h2>Unsigned Wide Variables</h2><p>Many of the new structures in Appledom include 64 bit integers which makes them twice the size of our long integer vars. The following routines show how to convert an unsigned 64 bit integer to a double precision floating variable and back.</p>
<pre>
BEGIN RECORD UnsignedWide
DIM hh AS UNSIGNED WORD
DIM hl AS UNSIGNED WORD
DIM lh AS UNSIGNED WORD
DIM ll AS UNSIGNED WORD
END RECORD
LOCAL MODE
LOCAL FN UnsignedWideToDbl#(WidePtr AS PTR TO UnsignedWide)
END FN = ((((WidePtr.hh*65536.0)+WidePtr.hl)*65536.0) ¬
+WidePtr.lh)*65536.0+WidePtr.ll
LOCAL MODE
LOCAL FN DblToUnsignedWide(Dbl#,WidePtr AS PTR TO UnsignedWide)