Incorrect percentage behavior #27
Labels
Bug
Something isn't working
Priority: High
Needs to be fixed immediately
Status: Confirmed
Will surely be fixed or implemented
Right now the calculator evaluates '%' symbol to ' / 100' for every expression. What it should do is find out what the percentage is being calculated against. For example, '100 + 20%' should evaluate to 120 because '100 + (20/100 * 100) = 120' but instead the result is 100.2 which is incorrect.
If x is in the expression in the form 'x + y%', then it should evaluate to 'x + (y/100 * x)'
The text was updated successfully, but these errors were encountered: