Integer Variables?
Mweigand
Maybe i am just a bit stupid, but i have a small problem that _should_ be trivial, but i cannot seem to solve it:
I have to import a binary file from a custom experiment. This uses packed bits to store 2 values in an unsigned long(32bit) int.
Seperating them should be easy by using binary operators. But loading it into a "variable", its automatically cast into a float (messing things up).
Is there any way to define variables strictly as interger in a procedure? Or am i just doing something wrong and am using the wrong method?
April 22, 2008 at 05:28 pm - Permalink
Variable lowPart = value & 0xFFFF
Variable highPart = value / 2^16
April 22, 2008 at 09:18 pm - Permalink