Displayed download size / decimal separator
-
It seems that for newly submitted articles the download size also shows the fractional part, for example "48,552 KB", which is especially confusing because the decimal separator is localized. I expected 48 MB, but the file size is only 48552 bytes. I think the best idea would be to remove the fractional part.
Actually the decimal separator isn't localised. We forgot to do a divide-by-1024 :-O. The problem has since been fixed (for new articles). We hope that authors of new articles will pick up on the problem next time they edit their article
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
It seems that for newly submitted articles the download size also shows the fractional part, for example "48,552 KB", which is especially confusing because the decimal separator is localized. I expected 48 MB, but the file size is only 48552 bytes. I think the best idea would be to remove the fractional part.
Technically, it's correct for 1 KB to be 1000 bytes. The unit for 1024 bytes has been officially KiB (kibibyte) for a while now.
ROFLOLMFAO
-
Technically, it's correct for 1 KB to be 1000 bytes. The unit for 1024 bytes has been officially KiB (kibibyte) for a while now.
ROFLOLMFAO
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
Except that the SI unit is kB and not KB ;)
-
Technically, it's correct for 1 KB to be 1000 bytes. The unit for 1024 bytes has been officially KiB (kibibyte) for a while now.
ROFLOLMFAO
Ri Qen-Sin wrote:
The unit for 1024 bytes has been officially KiB (kibibyte) for a while now
Uh-huh. :rolleyes:
Software Zen:
delete this;
-
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
Except that the SI unit is kB and not KB ;)
Absolutely - introducing a new unit prefix so HDD makes can continue to cheat - ridiculous! (nitpickers corner: I know that it doesn't wprk fo MB/GB)
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!|[">FoldWithUs!](http://tinyurl.com/37q6tt<br mode=) | sighist -
Technically, it's correct for 1 KB to be 1000 bytes. The unit for 1024 bytes has been officially KiB (kibibyte) for a while now.
ROFLOLMFAO
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
WHAT? That must be for none savvy people for sure... But on a computer, if a file is 200KB, its still 204,800 bytes, right? And there's still 8 bits in a byte? And a nibble is still the really bad joke of a computer nerd?
My current favourite word is: Bauble!
-SK Genius
-
Technically, it's correct for 1 KB to be 1000 bytes. The unit for 1024 bytes has been officially KiB (kibibyte) for a while now.
ROFLOLMFAO
Ri Qen-Sin wrote:
The unit for 1024 bytes has been officially KiB (kibibyte) for a while now
Actually, the official term here is the quibblebyte. That's the unit of measurement for people who correct others.
Deja View - the feeling that you've seen this post before.
-
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
WHAT? That must be for none savvy people for sure... But on a computer, if a file is 200KB, its still 204,800 bytes, right? And there's still 8 bits in a byte? And a nibble is still the really bad joke of a computer nerd?
My current favourite word is: Bauble!
-SK Genius
SK Genius wrote:
And there's still 8 bits in a byte?
That is very narrow-minded. There has been (still is?) a Data General system with a word size of 36 bits, capable of holding five 7-bit bytes and 1 flag bit; and a Honeywell system with 9-bit bytes. K&R allow for different byte sizes in their C definition. Some of the modern languages (Java, C#) insist on 8-bit bytes. Finally http://en.wikipedia.org/wiki/Byte[^] is tolerant: "In computer science a byte (pronounced "bite") is a unit of measurement of information storage, most often consisting of eight bits" BTW: I consistently use K for 1024 and k for 1000, hence KB and km; and M for K*K as well as k*k! :)
Luc Pattyn [Forum Guidelines] [My Articles]
Sorry for any delays in replying, I currently don't always get e-mail notifications.
-
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
WHAT? That must be for none savvy people for sure... But on a computer, if a file is 200KB, its still 204,800 bytes, right? And there's still 8 bits in a byte? And a nibble is still the really bad joke of a computer nerd?
My current favourite word is: Bauble!
-SK Genius
SK Genius wrote:
a nibble is still the really bad joke of a computer nerd
It's a nybble. ;P
Deja View - the feeling that you've seen this post before.
-
Ri Qen-Sin wrote:
Technically, it's correct for 1 KB to be 1000 bytes.
WHAT? That must be for none savvy people for sure... But on a computer, if a file is 200KB, its still 204,800 bytes, right? And there's still 8 bits in a byte? And a nibble is still the really bad joke of a computer nerd?
My current favourite word is: Bauble!
-SK Genius
SK Genius wrote:
And a nibble is still the really bad joke of a computer nerd?
It's 4 bits, always been, and always will be. It ain't no joke man! ;P
-- Kein Mitleid Für Die Mehrheit