expression parser/evaluator accepting strange values as numeric bases
Submitted by Flávio
when entering a expression that uses a base number the parser accept any decimal value as the base. There is two problems with it:
base 1 (unary) numbers are treated as the symbol to express digits is 0 (zero). This make any expression on that base to be evaluated to zero. Any symbol should work as a digit on this base, but 1 (one) is natural for that.
bases over 16 are being accepted and evaluated correctly, but the expression parser doesn't support symbols to represent numbers on those bases. If entering the number 16 on base 17, as an example, it could be G17, but as result it says "unknown variable g17).
To solve, as the software description says it is NOT a math power tool, i think that accepting bases only on range 2..16 is ok. The parser/evaluator could be modified to solve those problems, but maybe this would be overkill?
My calculator on Ubuntu 14.04LTS says it is version 3.10.3, but i see version crazy over that number here on bugzilla form, so i don't know if the bug is relevant or not...
Thanks for all the work! Flávio