Click here to Skip to main content
15,029,043 members
Home / Discussions / C#
   

C#

 
AnswerRe: Project of component at design time Pin
Christian Graus21-Jun-09 10:02
protectorChristian Graus21-Jun-09 10:02 
QuestionChanging whats displyed on a page in a Webbrowser Control. [modified] Pin
Beijer21-Jun-09 6:52
MemberBeijer21-Jun-09 6:52 
QuestionEquality of floating point numbers Pin
Wags21-Jun-09 5:52
professionalWags21-Jun-09 5:52 
AnswerRe: Equality of floating point numbers Pin
Luc Pattyn21-Jun-09 6:24
sitebuilderLuc Pattyn21-Jun-09 6:24 
GeneralRe: Equality of floating point numbers Pin
CPallini21-Jun-09 7:01
mveCPallini21-Jun-09 7:01 
GeneralRe: Equality of floating point numbers Pin
Eddy Vluggen21-Jun-09 7:08
professionalEddy Vluggen21-Jun-09 7:08 
GeneralRe: Equality of floating point numbers Pin
Wags21-Jun-09 7:55
professionalWags21-Jun-09 7:55 
GeneralRe: Equality of floating point numbers [modified] Pin
Luc Pattyn21-Jun-09 8:08
sitebuilderLuc Pattyn21-Jun-09 8:08 
As I said, MSDN requires an inherited Equals to return true for x.Equals(x) unless x is of type float/double, in which case there is no such requirement at all.

Your point on one NaN not being equal to another NaN is absolutely valid; anyway, x.Equals(y) is not supposed to first check if x and y refer to the same object. So if they both refer to the same float variable and that happens to be NaN, then is really should return wouldn't be wrong to return false!

AFAIK the same argument applies to plus and minus infinity, one infinity does not equal another.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

modified on Sunday, June 21, 2009 2:14 PM

QuestionCrystal report field strange behaviour Pin
Muammar©21-Jun-09 5:35
Member Muammar©21-Jun-09 5:35 
AnswerSolved! Pin
Muammar©21-Jun-09 6:19
Member Muammar©21-Jun-09 6:19 
QuestionDeleted VS component Pin
Hans Ruck21-Jun-09 4:01
MemberHans Ruck21-Jun-09 4:01 
AnswerRe: Deleted VS component Pin
Henry Minute21-Jun-09 8:00
MemberHenry Minute21-Jun-09 8:00 
GeneralRe: Deleted VS component Pin
Hans Ruck21-Jun-09 8:59
MemberHans Ruck21-Jun-09 8:59 
QuestionReuseability of controls Pin
Rafone21-Jun-09 3:29
MemberRafone21-Jun-09 3:29 
AnswerRe: Reuseability of controls Pin
Colin Angus Mackay21-Jun-09 4:12
MemberColin Angus Mackay21-Jun-09 4:12 
GeneralRe: Reuseability of controls Pin
Rafone21-Jun-09 5:08
MemberRafone21-Jun-09 5:08 
GeneralRe: Reuseability of controls Pin
Luc Pattyn21-Jun-09 5:25
sitebuilderLuc Pattyn21-Jun-09 5:25 
GeneralRe: Reuseability of controls Pin
Rafone21-Jun-09 7:58
MemberRafone21-Jun-09 7:58 
GeneralRe: Reuseability of controls Pin
Luc Pattyn21-Jun-09 8:10
sitebuilderLuc Pattyn21-Jun-09 8:10 
QuestionEvent handling in a custom control. Pin
Siddhartha S.21-Jun-09 1:26
MemberSiddhartha S.21-Jun-09 1:26 
AnswerRe: Event handling in a custom control. Pin
Luc Pattyn21-Jun-09 1:58
sitebuilderLuc Pattyn21-Jun-09 1:58 
GeneralRe: Event handling in a custom control. Pin
Siddhartha S.21-Jun-09 16:55
MemberSiddhartha S.21-Jun-09 16:55 
GeneralRe: Event handling in a custom control. Pin
Luc Pattyn21-Jun-09 17:00
sitebuilderLuc Pattyn21-Jun-09 17:00 
GeneralRe: Event handling in a custom control. Pin
Siddhartha S.21-Jun-09 17:04
MemberSiddhartha S.21-Jun-09 17:04 
QuestionCasting KeyValuePair -- eliminate else if blocks [modified] Pin
devvvy21-Jun-09 0:48
Memberdevvvy21-Jun-09 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.