using display_size() I realized that our (giga|mega|kilo)byte strings have a _lowercase_ 'b' in lang/en/moodle.php
$string['sizegb'] = 'Gb';
$string['sizekb'] = 'Kb';
$string['sizemb'] = 'Mb';
Is this by design? Or should I just fix it to the conventional GB, KB and MB?
Dunno how that got in! Yes, fix it please!
Or do we follow the IEC and use the supposedly-official-but-not-widely-used KiB, MiB, GiB ....
Nah, they look funny!
Or do we follow the IEC and use the supposedly-official-but-not-widely-used KiB, MiB, GiB ....
Nah, they look funny!
I have always thought it goes like this:
k = kilo (lowercase)
M = mega
G = giga
B = byte
b = bit
K = Kelvin (UPPERCASE) 0 Celsius = 273.15 Kelvin
Is that Mi = miga ???
k = kilo (lowercase)
M = mega
G = giga
B = byte
b = bit
K = Kelvin (UPPERCASE) 0 Celsius = 273.15 Kelvin
Is that Mi = miga ???
Lowercase k is 1000, but a KB is 1024 bytes. That's why they came up with KiB etc, but not many people seem to understand that and it just causes more confusion.
I didn't know that. MB is probably 1024*1024 bytes and GB 1024*1024*1024 bytes. But M is also 1000000 and G is also 1000000000 to mess things up.
Teemu
Teemu
Hi,
In networking we use kb (e.g dial-up modem 56kb/s) and k is equal to 1000. In storage capacity (e.g hard-drive) we use KB and K is equal to 1024.