Skip to content

Improve clarity of math expressions in history for Standard Calculator #138

Closed

Description

Describe the bug
Operators precedence in standard mode seems wrong, but works correctly in scientific mode.

Steps To Reproduce

  1. Use standard mode.
  2. Type: 75×0.3+60×0.7 (which equals to 75*0.3 + 60*0.7)
  3. Press Enter
  4. Now you will get the wrong result.
  5. Switch to scientific mode.
  6. Type the same expression above and submit it.
  7. Now you can get the correct result.

Expected behavior
75*0.3 + 60*0.7 should be 64.5. However, the calculator will show the wrong result in standard mode.

Screenshots
Standard mode:
default

Scientific mode:
default

Device and Application Information (please complete the following information):

  • OS Build: Windows 10 1803 build 17134.590
  • Architecture: x64
  • Application Version: 10.1811.3241.0

Possible solution (additional)
According to the disscusion of this issue, the calculation is expected. The bug is of the "History Panel". Some folks advised to add parens for expressions to be not confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions