Microsoft/calculator

Entering negative exponents in Scientific mode is not supported

Open

#1311 opened on Jul 12, 2020

View on GitHub
 (16 comments) (15 reactions) (0 assignees)C++ (16,196 stars) (2,422 forks)batch import
Area: User ExperienceBugPri: 2help wantedtriage approved

Description

Describe the bug The Calculator app does not support entering negative exponents. For example, in the Scientific mode, we can enter "2.6e2" produces the expected output 260 but trying to type "2.6e-2" does not give 0.026 as it should. I even tried to put the -2 within parentheses to make sure it understands that the dash symbol is not for subtraction here but even that fails.

Steps To Reproduce

  1. Open the Calculator app in Scientific mode.
  2. Type "2.6e-2" and attempt to calculate it.
  3. The answer reported back is 0.6 instead of the expected 0.026.

Expected behavior The Calculator app should ideally support entering negative exponents and on typing "2.6e-2" in Scientific mode, it should understand that a dash following an exponent symbol 'e' is not supposed to mean subtraction but a negation.

Screenshots image

Device and Application Information

  • OS: Windows 10 Home Insider Preview Single Language
  • OS Build: 10 - 0 -20161 - 0 (20161.rs_prerelease.200627-1754)
  • Architecture: x64
  • Application Version: 10.2005.23.0

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

Contributor guide