Javascript eval function returning Octal value

Posted by pankaj on Stack Overflow See other posts from Stack Overflow or by pankaj
Published on 2010-03-26T14:01:23Z Indexed on 2010/03/26 14:03 UTC
Read the original article Hit count: 186

Filed under:

Hi,

when i try "eval" function as eval ("020 * 05 + 05") it is returning 85 instead off 105. Can someone explain me why eval function behave like this? Also suggest any to over cum this problem.

© Stack Overflow or respective owner

Related posts about JavaScript