|
Posted by Tim Roberts on 01/20/06 08:59
"Chung Leong" <chernyshevsky@hotmail.com> wrote:
>
>How is -4,738,698,913 ^ 43814 = -443,704,711 correct?
First, answer this question: how can you squeeze -4,738,698,913 into a
32-bit variable?
4,738,698,913 would be 1_1A72_CEA1 in hex, but that needs 33 bits. If you
truncate that to 32 bits, you get 1A72_CEA1. Xor that with 43,814, which
is AB26 in hex, and you get 1A72_6587, which just happens to be
443,704,711.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|