Darkempire78 / OpenCalc

A simple and beautiful calculator for Android
GNU General Public License v3.0
727 stars 81 forks source link

Erroneous values when using percentage on operation encased in parentheses #448

Open dlu2002 opened 2 weeks ago

dlu2002 commented 2 weeks ago

Describe the bug When using percentage on an operation done between parentheses, the value comes out incorrect. I tried the same operation on multiple calculators and they all give the same answer but on this calculator.

To Reproduce Steps to reproduce the behavior:

  1. Click on "("
  2. Click on "5"
  3. Click on "4"
  4. Click on ")"
  5. Click on "%"
  6. Observe error.

Expected behavior The operation (5+4)% should display 0.09.

Screenshots/videos bugincalc

Smartphone (please complete the following information):