Please can some one explain the result differences below
echo intval(1e10);
Output 1410065408
echo 1e10;
Output 10000000000
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A signed integer has a maximum value. On 32-bit systems, that’s 2^16 or 2147483647. When
intval-ing a number that’s larger, it will overflow. The value you found can also calculated: