开发者

An Integers query

I'm very confused. Can someone explain me this?

32     ⟵This gets to 32
00032  ⟵This gets to 26
See yourself at IDEOne: Python, Java 开发者_如何转开发or Bash.

Why do zeros on the left matter?


A prefix zero means the number is parsed as an octal. Octal 32 is 26 in decimal system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜