Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I dont now which type

 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to java.I dont now which type(octal,hex,...)the below value refer to.
value =0xc521974f
How to convert it to decimal form.

request your help
 
Marcus Smedman
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about:



will print:

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Integer literals that start with "0x" such as in your example are in hexadecimal notation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic