Incorrect input of hexadecimals
A powerful arbitrary-precision calculator.
Brought to you by:
memoryhole
In interactive mode letters a-f may be treated as variables rather than part of hexadecimal numbers. First time a variable equal 0, and each time the result is stored in such variable. The command line mode seems unaffected.
Here is an example:
$ wcalc
Enter an expression to evaluate, q to quit, or ? for help:
-> a
^
Undefined variable: a
-> 0x1a+0x12
= 18
-> a
= 18
-> 0x1a+0x12
= 36
-> a
= 36
Thanks for the bug report! I've already fixed that bug in the code... I just need to push out a new release. It'll be in 2.5.1 (coming soon!).
The fix was in this commit: https://sourceforge.net/p/w-calc/code/965/