| Author |
Hexadecimal
|
Vishal Arora
Greenhorn
Joined: Jul 29, 2005
Posts: 9
|
|
Hi, Could somebody tell me whether hexadecimal number 0x1f and 0xffffffff are equal. If they are equal then how. Please let me know that.
|
 |
Santana Iyer
Ranch Hand
Joined: Jun 13, 2005
Posts: 335
|
|
0x1f means 31, 0xffff is far greater than that. write code urself and check it out.
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9955
|
|
They're definatly not equal. your asking the equivilent of "are 19 and 999999999 equal"
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
0xffffffff is an int literal with value -1 Have a look at Corey's Tipline article. [ July 29, 2005: Message edited by: Barry Gaunt ]
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
 |
|
|
subject: Hexadecimal
|
|
|