Skip to content

number calculation error in powertoys run #28085

Open
@zsynacl

Description

Microsoft PowerToys version

0.72.0

Installation method

GitHub, PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

  1. activate power toys run by key shortcut
  2. enter =2^50

✔️ Expected Behavior

expected answer is 1125899906842624

❌ Actual Behavior

actual answer is 1125899906842620

actually, any answer of 2^x would not be multiply of 10.
under any x >= 50, answer from powertoys run will be a wrong answer.
I guess the floating-point number introduced errors.
But if the error could not be avoided, users should be notified explicitly on the UI.

Other Software

windows calculator(11.2210.0.0): 1,125,899,906,842,624

python 3.8.10: python -c "print(2**50)" shows 1125899906842624

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-QualityStability, Performance, Etc.External DependencyThis bug or feature isn't resolved, but it's following an external work item.Issue-BugSomething isn't workingPriority-1Bug that is high priorityRun-PluginThings that relate with PowerToys Run's plugin interface

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions