| Posted: 09:35am 09 Jul 2025 |
|
|
|
Hi phil,
I though I remembered it as:
+1 = &b0000000000000000000000000000001 (32 bits signed) -1 = &b1111111111111111111111111111111 (32 bits signed)
use:
print bin$(-1)
so just moving the sign bit is not going to make up, you need to add 32 "1"-es as well. Appart from that.. is that faster than ?
if pos!>2147483647 then inc pos!,-4294967296
Volhout
P.S. a (faster) alternative could be :
x% = (x%<<32)/2^32
 Edited 2025-07-09 19:55 by Volhout |