开发者

An Integers query

开发者 https://www.devze.com 2023-04-02 05:32 出处:网络
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.

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

精彩评论

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