bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7852: 23.1; Calc binary xor truncating results


From: Jay Belanger
Subject: bug#7852: 23.1; Calc binary xor truncating results
Date: Mon, 17 Jan 2011 15:20:02 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Run the calculator with M-x calc, and enter two large
> numbers.
...
> Then, calculate the binary xor of the two numbers with b x. You will
> see that the result is truncated to a 32-bit number (32 numbers in
> binary, 8 numbers in hex).

That's expected behavior; the binary operations automatically clip their
results to the current word size and the default word size is 32.
The word size can be changed (for a single operation) with a prefix 
`C-u 100 b x' or permanently with `b w'.
(See the Calc section "Binary Functions".)

Jay





reply via email to

[Prev in Thread] Current Thread [Next in Thread]