Microsoft/calculator

Don't clear input when switching modes

Open

#114 opened on Mar 6, 2019

View on GitHub
 (22 comments) (81 reactions) (0 assignees)C++ (2,422 forks)batch import
EnhancementPri: 2help wantedneeds spec

Repository metrics

Stars
 (16,196 stars)
PR merge metrics
 (Avg merge 15h 43m) (7 merged PRs in 30d)

Description

Problem Statement Often I need to use functions from both programmer and scientific modes in the same calculation, but if I switch modes it loses my input. When the input is representable in both modes there is no reason to clear it.

Evidence or User Insights No other calculator does this, and there's no need for the input to be cleared. There's a button to clear the input.

Proposal Preserve the value when it is within the domain of the target mode, otherwise show an error in the display area.

Goals Remove the annoyance of losing the value when you switch modes.

Non-Goals Settle on a unified representation of values such that separate "modes" are not even necessary.

Contributor guide