microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.85k stars 6.58k forks source link

Unit Converter: Result has only 5 significant digits, so large values may be inaccurate #25996

Open VisualBasist opened 1 year ago

VisualBasist commented 1 year ago

Microsoft PowerToys version

0.69.1

Installation method

GitHub

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

%% 1MiB to B

image

✔️ Expected Behavior

1048576 B

❌ Actual Behavior

1048600 B

Other Software

No response

VisualBasist commented 1 year ago

Since double precision floating point numbers have 15 significant digits, what about using 15 digits?

htcfreek commented 5 months ago

@david-hankinson Your contribution is welcome and thank you for your work on this. Feel free to open a PR. If you have any further questions don't worry to ask them.

Have you found the files to change or do you still need information?