Re: convert byte to MB
| From: | Andrew Brampton | Date: | Tue, 25 Jul 2006 11:47:52 +0000 |
| Subject: | Re: convert byte to MB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239758@lists.php.net to get a copy of this message | ||
Divide by 1024 and you get KiB
Divide by 1000 and you get KB
Read: http://physics.nist.gov/cuu/Units/binary.html
Andrew
----- Original Message ----- From: "André Medeiros" <andre.caum@gmail.com>
To: "weetat" <weetat.yeo@cxrus.com>
Cc: <php-general@lists.php.net>
Sent: Tuesday, July 25, 2006 12:41 PM
Subject: Re: [PHP] convert byte to MB
divide by 1024, and you'll get KB divide again by 1024 and you'll get MB same for GB, TB, etc On 7/25/06, weetat <weetat.yeo@cxrus.com> wrote:Hi all , I have data which have value in bytes for example ,-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php$bytes = 33554432;How to convert this to MB ? THanks - weetat (PHP Novice) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php