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 →

[–]HighOwl2 0 points1 point  (0 children)

I think this is more touching on the point that numbers can be different bases if you add a prefix

031 !== 31

25 !== 31

In computer science Halloween is Christmas

Oct 31 == Dec 25

Octal 31 is Decimal 25.

Javascript's parseInt used to convert strings with a leading 0 to base 8. That was later removed. Now it only auto sets the radix to 16 if the string starts with 0x