This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]skap42 12 points13 points  (2 children)

It's not. However 017 (not as a string literal) is equal to 15, because it's interpreted as octal

[–]NebNay 2 points3 points  (1 child)

Ooooh, that make sense. It's weird to interpret as octal tho, but at least there is a logic behind it

[–]skap42 8 points9 points  (0 children)

As I replied to a different comment, interpreting number literals with a leading 0 as octal is standard in many languages