Trying to convert 9769712680 Bytes to Gigabytes. I have the following code:
$value = 9769712680 / (1024 * 1024 * 1024);
This should give a value of 9 Gb but instead it gives 2047 Mb (or 2 Gb).
Also tried: 9769712680 / 1024 / 1024 / 1024
but this also does the same thing.
Any ideas?