Ahhh, but then marketing gets involved and changes the 1024 to 1000 and ta da, you now have more MegaBytes. 1024 is the right number to use, but don't be surprised if it doesn't match with some numbers you might compare it to.

On Thursday, June 19, 2003, at 02:45 PM, Mike Migurski wrote:

Is there a simple script that will take a value in Kilobytes and convert
it to MegaBytes?

$value_in_mb = $value_in_kb / 1024;


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577


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



Reply via email to