I have the following problems:
Firstly: I'm trying to perform a bitwise offset of 32 spaces for a large number, and for some reason, the number always returns as is. For instance:
echo(516103988<<32);
Since shifting bits to the left of one space is equivalent to multiplying by 2, I tried to multiply the number by 2 ^ 32, and it works, it returns 2216649749795176448.
Secondly: I have to add 9379 to the number from the above paragraph:
printf('%0.0f', 2216649749795176448 + 9379); // prints 2216649749795185920
Must Type: 2216649749795185827
source
share