PHP: Why the 'abs' function returns a wrong number if it begins with zero?

Posted by Paulocoghi on Stack Overflow See other posts from Stack Overflow or by Paulocoghi
Published on 2010-04-20T11:27:58Z Indexed on 2010/04/20 11:33 UTC
Read the original article Hit count: 500

Filed under:
|
|
|

The code "abs(07000000)" returns 28672, but the code "abs(7000000)" returns 70000.

Did the zero at the beginning means that the number is interpreted as hex?

Thank you!

© Stack Overflow or respective owner

Related posts about php

Related posts about absolute