-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Run][Calculator plugin] Wrong result when there are lots of decimal places #9309
Comments
betting this is some type of mage issue with string to datatype. i don't know how much we'll be able to do here as we are string in, data out. |
@crutkas I can check if this can be configured in mages. |
What line? If I remember correctly we pass in a string to their engine. Data types is up to them |
PowerToys/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateEngine.cs Line 56 in 368c775
The problem is that we can't tell mages to use decimal. But we could check if the rounding code in our class works correct. Btw. I can reproduce a overflow in the plugin that makes number incorrect. If you input for example And please have in mind that there is a PR awaiting review that fixes many bugs in the calc plugin: #18159 |
/dup #18574 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
1.5248429469
❌ Actual result
29.4075426386
75.3113975135
1187.3728567606
...
📷 Screenshots
The text was updated successfully, but these errors were encountered: