• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confusing output

 
kevinn lee
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

why the output is not 100?
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the leading 0 means the number is octal. Likewise, a number starting with 0x or 0X means the number is hexadecimal.
 
kevinn lee
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Because the leading 0 means the number is octal. Likewise, a number starting with 0x or 0X means the number is hexadecimal.

thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic