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

"Divide by zero" trying to by divide hex number in calculator #36032

Open
dkaszews opened this issue Nov 21, 2024 · 0 comments
Open

"Divide by zero" trying to by divide hex number in calculator #36032

dkaszews opened this issue Nov 21, 2024 · 0 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@dkaszews
Copy link

dkaszews commented Nov 21, 2024

Microsoft PowerToys version

0.86.0

Installation method

WinGet

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

Trying to divide by any hex number is not recognized as a calculation, forcing with= prefix incorrectly shows "calculation contains division by zero". The same issue is for binary prefix. Likely some input validator checking for / 0 does not understand base prefixes.

✔️ Expected Behavior

> 0x100 / 16
🧮 16
> 0x100 / 0x10
🧮 16
> = 0x100 / 0x10
🧮 16

❌ Actual Behavior

> 0x100 / 16
🧮 16
> 0x100 / 0x10
🌐 0x100 / 0x10
> = 0x100 / 0x10
🧮 Failed to calculate the input, calculation contains division by zero 

Other Software

No response

@dkaszews dkaszews added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant