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

C#

 
QuestionHow catch/get windows file's thumbnail? Pin
jamesband00721-Jun-09 10:10
Memberjamesband00721-Jun-09 10:10 
AnswerRe: How catch/get windows file's thumbnail? Pin
Christian Graus21-Jun-09 10:50
protectorChristian Graus21-Jun-09 10:50 
GeneralRe: How catch/get windows file's thumbnail? Pin
Jan Kučera2-Aug-09 21:16
MemberJan Kučera2-Aug-09 21:16 
QuestionProject of component at design time Pin
Hans Ruck21-Jun-09 9:20
MemberHans Ruck21-Jun-09 9:20 
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 
Hi,

the MSDN documentation on Object.Equals says:

This method can be overridden by a derived class.... The following statements must be true for all implementations of the Equals method...
x.Equals(x) returns true, except in cases that involve floating-point types. See IEC 60559:1989, Binary Floating-point Arithmetic for Microprocessor Systems.

so all it says is xfloat.Equals(xfloat) is ALLOWED to return false; it just leaves the Equals() result for floats undefined.

The IEC standard isn't available for free, so I can't check this, however I assume they call the result of x==x undefined, hence hardware that implements IEC 60559:1989, and software running on such hardware, would find it difficult to enforce x.Equals(x) returns true.

The fundamental reason is it does not make sense at all to test two floats for equality; by their very nature, float values are either close to each other (difference less than epsilon), or they are not. Zero does not exist in nature.

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.

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 
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 

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.