victoryhighway2
Programmer
Hello,
I'm working on an application that requires modulo-32 bit arithmetic to compute a value in an equation similar to the following:
x = ((a * b) / c) + d
This looks simple on the surface, but even if I define X as a long, it will always overflow (because VB will try to perform standard arithmetic operations and can't store the result in a 32-bit signed integer.)
How can I get VB to perform this computation using modulo-32 bit operations? I've done numerous searches on Google and can't find any information.
Thanks in advance,
Geoffrey
I'm working on an application that requires modulo-32 bit arithmetic to compute a value in an equation similar to the following:
x = ((a * b) / c) + d
This looks simple on the surface, but even if I define X as a long, it will always overflow (because VB will try to perform standard arithmetic operations and can't store the result in a 32-bit signed integer.)
How can I get VB to perform this computation using modulo-32 bit operations? I've done numerous searches on Google and can't find any information.
Thanks in advance,
Geoffrey