microsoft/PowerToys

Powertoys run calculator weird behavior with space-separated thousands

Open

#34.145 geöffnet am 4. Aug. 2024

Auf GitHub ansehen
 (7 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C# (7.978 Forks)batch import
Cost-SmallHelp WantedIdea-EnhancementIssue-BugProduct-PowerToys RunRun-Plugin

Repository-Metriken

Stars
 (133.154 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 20h) (117 gemergte PRs in 30 T)

Beschreibung

Microsoft PowerToys version

0.83.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

  1. Open powertoys run
  2. Type in 100 500/100 - the result is incorrect (500 instead of 1005)
  3. If we type in 100500/100 (without the separator), we get the correct result - 1005.

I believe this is because the whitespace will be treated as implied multiplication, so the equation becomes 100(500/100) = 500

✔️ Expected Behavior

Whitespace can be used for thousands separator.

According to Wikipedia, space is the internationally recommended thousands separator.

❌ Actual Behavior

Doing calculations with large numbers formatted with whitespace as thousand separator give misleading results.

Other Software

No response

Contributor Guide