Re: convert byte to MB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: "weetat" <weetat.yeo@xxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, July 25, 2006 12:41 PM
Subject: Re:  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@xxxxxxxxx> wrote:
Hi all ,

  I have data which have value in bytes for example ,

    $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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux