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

PowerToys Run: Unit converter DATA UNITS - binary issue #33026

Open
Raf-UJ opened this issue May 23, 2024 · 5 comments
Open

PowerToys Run: Unit converter DATA UNITS - binary issue #33026

Raf-UJ opened this issue May 23, 2024 · 5 comments
Assignees
Labels
Issue-Bug Something isn't working Run-Plugin Things that relate with PowerToys Run's plugin interface Status-In progress This issue or work-item is under development

Comments

@Raf-UJ
Copy link

Raf-UJ commented May 23, 2024

Microsoft PowerToys version

0.81.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

typing %% 5GB in MB in the panel

or any other data unit conversion

✔️ Expected Behavior

4768.4MB

Why would I even use the conversion when it's just decimal shift by the amount of zeros.
I am aware that Microsoft is still using decimal for conversion but using "mebi" etc. is something I never knew until today. I looked it up not to look like an idiot while writing this. For most power-users that glanced it over ages ago it won't make sense.

Two possible solutions on this:

  1. Providing each results per environment with explanation to educate
  2. Give the user the ability to choose how to convert data units un default and move on.

While we're still in "transition period" for another few years (whilst being fed MB>KB decimal conversions daily) nobody would use conversion for that, you would just know or boot up a calc (or type = 5*1000)

Imagine that you do have this implementation and the output is:

5 GB = 5,000 MB  - Storage (SI System, 1960):
5 GiB = 5,120 MiB  - RAM (IEC System, 1998): 
5 GiB = 5,120 MiB  - VRAM (IEC System, 1998): 
Networking (ITU Standards, various dates): Data transfer rates typically use the decimal system (e.g., 1 Mbps = 1,000,000 bps).
Databases, Cloud Services,Software Development*: Generally follows the same SI and IEC standards as storage and RAM.
*depending on the platform and context.

❌ Actual Behavior

5000MB

writing MiB is resulting in the correct thing

Other Software

No response

@Raf-UJ Raf-UJ added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 23, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Raf-UJ Raf-UJ changed the title PowerToys Run: Unit converter DATA UNITS - binary PowerToys Run: Unit converter DATA UNITS - binary issue May 23, 2024
@david-hankinson
Copy link

Hello, it would be great to have a look at this for my first PR. Could you share with me where the file is to make this change?

#28769

@htcfreek
Copy link
Collaborator

@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.

What is your exact plan? (Implement "MB" for 1000 and "MiB" for 1024? That is what would make most sense to me.)

@htcfreek htcfreek added Run-Plugin Things that relate with PowerToys Run's plugin interface 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 Jun 29, 2024
@htcfreek htcfreek assigned htcfreek and david-hankinson and unassigned htcfreek Jun 29, 2024
@david-hankinson
Copy link

david-hankinson commented Jun 29, 2024

@htcfreek Thanks for the offer to ask questions, it makes working on this project seem like a good idea :)

I have created the following draft PR as a starting point.

#33563

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 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

No branches or pull requests

3 participants