File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equals

 
meena latha
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

output
not equal
equal
Can anybody explain me why it is showing different output.
[ February 18, 2005: Message edited by: Mark Spritzler ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, there is a button underneath the Add Reply button that will put CODE tags around code so that they don't lose their formatting and make it difficult to read.

OK, first what is the MAX_VALUE of double and float? and can you compare that to each other.

Second what about how Java handles comparison of two different primitive types, does it cast up or down, and how does it do it such that the result you see comes out "True"

Good Luck

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic