Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Exponent Calculation #2201

Open
thisUserX opened this issue Jul 2, 2024 · 1 comment
Open

Incorrect Exponent Calculation #2201

thisUserX opened this issue Jul 2, 2024 · 1 comment

Comments

@thisUserX
Copy link

Describe the bug

Calculating 2^2^2^2 produces 256 as the answer.
The correct answer should be 65536.
Order of operations dictate that the highest exponent should be calculated first as if there were parenthesis like (2^(2^(2^2))).

Steps To Reproduce

  1. Go to calculator
  2. enter 2^2^2^2
  3. See incorrect calculation of 256

Expected behavior

This should be calculated properly as 65536

Screenshots

Device and Application Information

  • OS Build: 10.0.22631.0
  • Architecture: X64
  • Application Version: 11.2405.2.0
  • Region: en-US
  • Dev Version Installed: False

Additional context

This problem exists with all tested numbers (not just 2). The error is in calculating the exponents from left to right instead of right to left.

Requested Assignment

I'm just reporting this problem. I don't want to fix it.

@KylePowell1
Copy link

There is no mistake. Every result of the calculator is defaulted to be enclosed in parentheses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants