LemaireEmilien / calculator-cucumber-2024

This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
0 stars 0 forks source link

[BUG] #34

Open tommens opened 4 months ago

tommens commented 4 months ago

Describe the bug The button "e" on the calculator keyboard seems to be misused for two totally unrelated things: for the constant e (2.71828) and for using the scientific notation (e.g. 2E5). This does not make since since this means the constant e (or pi, for that matter) cannot be combined with the scientific notation, since the expression does not parse. E.g. I cannot evaluate piE5 or eE5, while I can write 2.71828e5. This does not really make sense. Even if I use parentheses "(e)e5" it does not work.