note 54965 deleted from function.filesize by aidan
| From: | aidan@php.net | Date: | Wed, 09 Nov 2005 06:14:20 +0000 |
| Subject: | note 54965 deleted from function.filesize by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98292@lists.php.net to get a copy of this message | ||
Note Submitter: klugscheiszer at i-tuepfel dot com
----
If you want to format big byte numbers correctly, use the following tables:
==Binary==
10^n Unit Symb. Decimal equivalent
----+---------+----+--------------------------
2^10 kibibyte KiB 1_024
2^20 mebibyte MiB 1_048_576
2^30 gibibyte GiB 1_073_741_824
2^40 tebibyte TiB 1_099_511_627_776
2^50 pebibyte PiB 1_125_899_906_842_624
2^60 exbibyte EiB 1_152_921_504_606_846_976
==Decimal==
10^n Prefix Symb. Decimal equivalent
-----+------+----+------------------------------
10^3 kilo kB 1_000
10^6 mega MB 1_000_000
10^9 giga GB 1_000_000_000
10^12 tera TB 1_000_000_000_000
10^15 peta PB 1_000_000_000_000_000
10^18 exa EB 1_000_000_000_000_000_000
10^21 zetta ZB 1_000_000_000_000_000_000_000
10^24 yotta YB 1_000_000_000_000_000_000_000_000
Also see:
http://en.wikipedia.org/wiki/SI_prefix
http://en.wikipedia.org/wiki/Byte