it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

feat(new tools): Data Storage/Transfer Units Converter

Open sharevb opened this issue 1 year ago • 20 comments

New Tool: Data Transfer Rate Converter New Tool: Data Storage Units Converter (with MB, MiB and Mb)

Fix #539 #785 #1160 #848

Data Storage Units Converter inspired by #948 by @utf26

sharevb avatar Sep 11 '24 20:09 sharevb

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
it-tools ✅ Ready (Inspect) Visit Preview Sep 21, 2024 8:10am

vercel[bot] avatar Sep 11 '24 20:09 vercel[bot]

@sharevb Thanks for your work! I'm wondering why the tool says 1MB = 1000KB. Shouldn't it be 1024KB? The tool from #948 calculates that correctly.

image

steffenrapp avatar Sep 11 '24 21:09 steffenrapp

Also the separators look wrong to me. Should be a dot for decimals instead of a comma in English and vice versa?

steffenrapp avatar Sep 11 '24 21:09 steffenrapp

Hi @steffenrapp, I would have also said MB is 1024² but in fact MB is decimal 1000² and MiB is binary 1024² : https://en.wikipedia.org/wiki/Megabyte ; confusing, I admit

sharevb avatar Sep 11 '24 21:09 sharevb

Hi @steffenrapp, regarding comma or dot, the display use your browser language but right, it should be always English

sharevb avatar Sep 11 '24 21:09 sharevb

Sorry my bad 🤦🏻‍♂️

steffenrapp avatar Sep 11 '24 21:09 steffenrapp

Hi @steffenrapp, implemented "always dot" (and no thousand separator) as your bug report. Thanks, it is clearer now.

sharevb avatar Sep 11 '24 21:09 sharevb

Hi @sharevb what do you think if the decimal separator would be depending on the selected language? Might be a general global implementation to define and later use those rules.

steffenrapp avatar Sep 12 '24 05:09 steffenrapp

Hi @steffenrapp, I am not sure it is not confusing to present as local formating (at least for this tool, since it is IT tools, it is supposed to be IT formating) and also because I presume you have a German language on your computer and you were surprise that it was "1.000,00"

sharevb avatar Sep 12 '24 12:09 sharevb

Hi @sharevb I understand your perspective and think it makes sense like that. A general decision for the product should be made by @CorentinTh if he wants some clear guidelines.

EDIT: Yes my devices are German 😀 In fact I was confused because I had English select in the tool and it was the German formatting.

steffenrapp avatar Sep 12 '24 13:09 steffenrapp

Waiting for this new tool! Thanks!!

luiscachog avatar Sep 16 '24 13:09 luiscachog

Hi @sharevb , can you add fullname like this, for more details image

quyvsquy avatar Sep 20 '24 03:09 quyvsquy

Hi @quyvsquy (and @steffenrapp and @CorentinTh) added label for units (right, it is better, thanks)

sharevb avatar Sep 21 '24 08:09 sharevb

Hi @sharevb Nice looks good 👍🏼

steffenrapp avatar Sep 21 '24 08:09 steffenrapp

Hi, for people interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Nov 24 '24 20:11 sharevb

this is pretty close, but would be nice to have bit and byte options. as I went to just try this out to see how fast something downloaded that was 9.8 GB in x seconds... I expected to see MB/s not Mbps

thezoggy avatar Dec 24 '24 05:12 thezoggy

@sharevb is attempting to deploy a commit to the Corentin Thomasset's Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jan 01 '25 23:01 vercel[bot]

Hi @thezoggy, implemented in my fork : https://sharevb-it-tools.vercel.app/data-transfer-rate-converter

sharevb avatar Jan 01 '25 23:01 sharevb

@CorentinTh Can this be added? Instead of folks being linked to and such would be nice to just see the feature deployed. Thank you!

majerus1223 avatar Jan 26 '25 18:01 majerus1223

Looking forward to this implementation.

Xerionty avatar Feb 07 '25 21:02 Xerionty

Hi @Xerionty , https://sharevb-it-tools.vercel.app/data-transfer-rate-converter or https://sharevb-it-tools.vercel.app/data-storage-unit-converter , and if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Feb 08 '25 20:02 sharevb

this does not look to be working correctly image

thezoggy avatar Oct 28 '25 21:10 thezoggy

Hi @thezoggy , MB is 1000 based. MiB is 1024 based. What do you mean by "this does not look to be working correctly" ? Thanks

sharevb avatar Oct 31 '25 19:10 sharevb

Hi @thezoggy , MB is 1000 based. MiB is 1024 based. What do you mean by "this does not look to be working correctly" ? Thanks

Setting the precision should result in decimal places. So with 1 set, I would have expected 25000.0MB

thezoggy avatar Oct 31 '25 19:10 thezoggy

Hi @thezoggy , MB is 1000 based. MiB is 1024 based. What do you mean by "this does not look to be working correctly" ? Thanks

Setting the precision should result in decimal places. So with 1 set, I would have expected 25000.0MB

Precision is the max number of digit if needed. I made for converting, not for formatting values. But it make sense too.

sharevb avatar Oct 31 '25 20:10 sharevb

Hi @thezoggy , MB is 1000 based. MiB is 1024 based. What do you mean by "this does not look to be working correctly" ? Thanks

Setting the precision should result in decimal places. So with 1 set, I would have expected 25000.0MB

Precision is the max number of digit if needed. I made for converting, not for formatting values. But it make sense too.

in most things where you offer precision you expect it to be explicitly used and rounded to that decimal place.... so if people want integers they use precision of 0

thezoggy avatar Oct 31 '25 20:10 thezoggy

Hi @thezoggy , fixed in https://sharevb-it-tools.vercel.app/data-storage-unit-converter, thanks for this reporting

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Oct 31 '25 22:10 sharevb