Trying to do some math with 64 bit and noticed math was not coming out right.
Local $tDec = DllStructCreate("int64 num")
$tDec.num = 0xDEADBEDDEADBED
ConsoleWrite('Before:' & $tDec.num & @CRLF);
$tDec.num = $tDec.num / 1
ConsoleWrite(' After:' & $tDec.num & @CRLF);
This is generating:
Before:62678480108313581
After:62678480108313585
Am I missing something?
If I replace the divide ("/") with Multiply ("*") it works but the divides do not.
If I divide by 2, I get:
Local $tDec = DllStructCreate("int64 num")
$tDec.num = 0xDEADBEDDEADBED
ConsoleWrite('Before:' & $tDec.num & @CRLF);
$tDec.num = $tDec.num / 2
ConsoleWrite(' After:' & $tDec.num & @CRLF);
Before:62678480108313581
After:31339240054156793
But the number should be: 31339240054156790
Running with 32 bit AutoIT 3.3.14.2