note 54965 added to function.filesize
| From: | klugscheiszer at i-tuepfel dot com | Date: | Thu, 21 Jul 2005 07:04:04 +0000 |
| Subject: | note 54965 added to function.filesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92236@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.filesize.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54965
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54965&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54965&report=yes
Search -- http://master.php.net/manage/user-notes.php