Do not quote me on this coding as I am not a true guru of php BUT I just finished today a script that takes a number in bytes and converts it to MB.
$hosting = (($hosting_data[0]/1024)/1024);
$hosting = round($hosting, 3);
echo "TOTAL Bandwidth: $hosting MB";
you can change the 3 to a two if you only want to show two decimal places past.
If anyone can come up with something else, please I would like to know also as this is something I just thought up and I am sure there is an easier way.