mihusolutions / googlebugs

Automatically exported from code.google.com/p/googlebugs
0 stars 0 forks source link

Incorrect Byte Conversion #618

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Search on Google "229085 Kilobytes to Gigabytes" or similar (e.g. 52000 kb 
to gb)
2. Note incorrect response of "229 085 kilobytes =
0.229085 gigabytes" 

What is the expected output? What do you see instead?
229 085 kilobytes = 0.218472481 GB

Please provide any additional information below.
1024 Kilobytes is 1 Megabyte
1024 Megabytes is 1 Gigabyte
To convert from KB to GB one should divide KB by 1024 twice (or divide once by 
1048576) because there are 1,048,576 Kilobytes in a Gigabyte, not 1,000,000.

Original issue reported on code.google.com by christys...@gmail.com on 1 Aug 2014 at 12:55

GoogleCodeExporter commented 9 years ago
Nevermind, apparently this is the more widely accepted standard.
http://www.catalystsecure.com/blog/2011/05/how-many-bytes-in-a-gigabyte-my-answe
r-might-surprise-you/

Original comment by christys...@gmail.com on 1 Aug 2014 at 1:17

GoogleCodeExporter commented 9 years ago
I was always taught the following...
1024 Kilobytes is 1 Megabyte
1024 Megabytes is 1 Gigabyte
To convert from KB to GB one should divide KB by 1024 twice (or divide once by 
1048576) because there are 1,048,576 Kilobytes in a Gigabyte, not 1,000,000.

When I saw Google showed 1GB = 1000MB I definitely thought something is wrong.

Original comment by kc2...@gmail.com on 9 Oct 2014 at 2:51

GoogleCodeExporter commented 9 years ago
So, I had no idea about Kibibytes or Mebibytes before reading that article, and 
I think they're great! However, if I type in "1KB", I think google should 
assume I mean "Kibibyte" and not "Kilobyte". However, if I typed "1 kilobyte" I 
think it should keep the same behavior, to inform people about kibibytes.

Original comment by oddityov...@gmail.com on 23 Apr 2015 at 4:11