Flow-Launcher / Flow-Launcher/Flow.Launcher

BUG: Calculator can't multiply numbers with more than 19 digits

Open
#2,673 5 comments 0 reactions 0 assignees View on GitHub
bug help wanted keep-fresh
Dominant language
C#
Stars
15.6k
Forks
644
Avg merge
16h 51m
Merged PRs (30d)
3

Description

### Checks

- [X] I have checked that this issue has not already been reported.

- [X] I am using the latest version of Flow Launcher.

### Problem Description

Calculator is providing wrong result if one of the two numbers being multiplied is more than 19 digits. Examples:
1. 1.2*0.83333333333333333333
2. 2453*23534245034253633353
3. 1*0.22222222222222222222
4. 1*24353532424240053022
5. 1*1111111111111111111111
6. 1324*30000000000000000000

It's easiest to see this issue in action if you copy and paste the above examples and then remove just the _last digit_. We will notice a large change in the result.

But there are some instances where this doesn't happen. I am unable to determine the logic behind when this issue occurs and when it does not. Examples:
1. 1*0.11111111111111111111
2. 1324*10000000000000000000
3. 1324*40000000000000000000

### To Reproduce

_No response_

### Screenshots

_No response_

### Flow Launcher Version

1.18.0

### Windows Build Number

10.0.22631.3447

### Error Log

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.