Re: Convert KB to MB?
| From: | Brent Baisley | Date: | Thu, 19 Jun 2003 19:40:08 +0000 |
| Subject: | Re: Convert KB to MB? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152224@lists.php.net to get a copy of this message | ||
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