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 · May be fixed by #36390
Open

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

dkaszews opened this issue Nov 21, 2024 · 0 comments · May be fixed by #36390
Assignees
Labels
Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface Status-In progress This issue or work-item is under development

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
@Jay-o-Way Jay-o-Way added the Run-Plugin Things that relate with PowerToys Run's plugin interface label Nov 25, 2024
@plante-msft plante-msft self-assigned this Dec 13, 2024
@plante-msft plante-msft added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Status-In progress This issue or work-item is under development and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 13, 2024
@plante-msft plante-msft linked a pull request Dec 17, 2024 that will close this issue
11 tasks
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 Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface Status-In progress This issue or work-item is under development
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants