Page 1 of 1
Formatbytes: Misspelling and powers.
Posted: 11 Nov 2010 18:52
by SkyFrontier
-Misspelling?:
v9.70.0007 - 2010-11-11 13:29
...
KB, MG, GB, TB, or PB = usual bytes unit.
-can you enhance it to deal with powers of 1000?
::echo formatbytes("1000", "kb"); //1 kB
versus
::echo formatbytes("1024", "kib"); //1 KiB
Thanks!
Re: Formatbytes: Misspelling and powers.
Posted: 11 Nov 2010 19:51
by admin
SkyFrontier wrote:-Misspelling?:
v9.70.0007 - 2010-11-11 13:29
...
KB, MG, GB, TB, or PB = usual bytes unit.
-can you enhance it to deal with powers of 1000?
::echo formatbytes("1000", "kb"); //1 kB
versus
::echo formatbytes("1024", "kib"); //1 KiB
Thanks!
Yes, "MB", thanks.
kiB, nobody uses this. It's lifeless theory... or?
Re: Formatbytes: Misspelling and powers.
Posted: 11 Nov 2010 20:11
by SkyFrontier
admin wrote:
kiB, nobody uses this. It's lifeless theory... or?
Hmmmm...
theoretically agree.
Anyway, I'd prefer to see the standards ready to be shown to critics than not...
Re: Formatbytes: Misspelling and powers.
Posted: 11 Nov 2010 20:22
by admin
SkyFrontier wrote:admin wrote:
kiB, nobody uses this. It's lifeless theory... or?
Hmmmm...
theoretically agree.
Anyway, I'd prefer to see the standards ready to be shown to critics than not...
= highway to bloat.
