0

My PHP environment is 64 bit:

echo PHP_INT_MAX;
    9223372036854775807

So I thought I could operate with integer values lower than PHP_INT_MAX value.

But this code:

echo (517002.962 * 1000000000);

gives this result:

5.17002962E+14 

So, I am confused. If 5.17002962E+14 is lower than PHP_INT_MAX (9223372036854775807), why does PHP convert it to scientific notation?

0 Answers0