Hi Guys,
As the title says really... Sounds simple, it is.
But....! I'm dealing with huge numbers here. I'm dragging bandwidth from a logging system I am developing for a client and it returns it in BYTES... Very accurate :|
This is the sort of number I'm dealing with here...
$str = 1.797693134862316e+308;
$float = settype($str, "integer");
$bandwidthusage = intval($float) / 1048576;
echo $bandwidthusage;
The above code returns: 9.53674316406E-7
How do I convert this to MB?! It's driving me nuts. Any help would be really appreciated.
Thank you in advance,
Josh