Results 1 to 6 of 6
- 11-21-2011, 04:42 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
- 11-21-2011, 04:53 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: Boolean: different two type of declare
Those boolean results imply that the float and double representations for 4.45 are identical while a float value 4.44 cast to type double differs from a double type value 4.45. Read this article.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-21-2011, 05:06 PM #3
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
Re: Boolean: different two type of declare
@: JosAH, thank for your kindly help. But can you tell me more shortly, please. I think this problem come from what java work. Because in C/C++, above code will output false for two case, too :D
@:I don't like your document you give to me, not because it's long, or not because it's hard. I don't like it because: It's long, and many part of this document seem easy to me (maybe because It belongs to math, and I love it). So, I hard to find what I need :(
thanks :)
- 11-22-2011, 09:43 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
Re: Boolean: different two type of declare
He did tell you, it has to do with java's float and double representations. Read that document, completely, and you will understand.
- 11-24-2011, 03:18 AM #5
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
Re: Boolean: different two type of declare
Oh, so thank for your help :PHe did tell you, it has to do with java's float and double representations. Read that document, completely, and you will understand.
- 11-24-2011, 08:23 AM #6
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
Similar Threads
-
The method setVisable(boolean) is undefined for the type ChooseColor
By fishy8158 in forum New To JavaReplies: 3Last Post: 11-18-2011, 08:15 AM -
Boolean Data type
By maya700 in forum New To JavaReplies: 8Last Post: 05-04-2011, 03:38 PM -
Declare INTEGER expecting/requiring BOOLEAN
By mine0926 in forum NetBeansReplies: 4Last Post: 04-30-2010, 01:44 AM -
declare class data member as an inteface type
By everurz in forum Advanced JavaReplies: 3Last Post: 12-21-2009, 01:04 PM -
declare a private instance variable called ran of type random
By tinman in forum New To JavaReplies: 1Last Post: 12-09-2009, 12:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks