Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: Non-Standard port configuration for SmtpMail Pin
WetRivrRat26-Jul-05 8:02
WetRivrRat26-Jul-05 8:02 
QuestionSmtpMail without smtp installed??? Pin
WetRivrRat26-Jul-05 4:33
WetRivrRat26-Jul-05 4:33 
AnswerRe: SmtpMail without smtp installed??? Pin
Guffa26-Jul-05 6:02
Guffa26-Jul-05 6:02 
GeneralRe: SmtpMail without smtp installed??? Pin
WetRivrRat26-Jul-05 8:03
WetRivrRat26-Jul-05 8:03 
Generalmask edit in c# Pin
fady_sayegh26-Jul-05 4:28
fady_sayegh26-Jul-05 4:28 
GeneralRe: mask edit in c# Pin
WetRivrRat26-Jul-05 5:06
WetRivrRat26-Jul-05 5:06 
GeneralRe: mask edit in c# Pin
Luis Alonso Ramos26-Jul-05 6:39
Luis Alonso Ramos26-Jul-05 6:39 
GeneralComparing Doubles Using Epsilon in C# Pin
Member 197084526-Jul-05 4:09
Member 197084526-Jul-05 4:09 
The help in Visual Stuio on double.Epsilon states the following:

"Two apparently equivalent floating point numbers might not compare equal because of differences in their least significant digits. For example, the C# expression, (double)1/3 == (double)0.33333, does not compare equal because the division operation on the left-hand side has maximum precision while the constant on the right-hand side is only precise to the visible digits.

Instead, determine if the two sides of a comparison are close enough to equal for your purposes by comparing whether the absolute value of the difference between the left and right-hand sides is less than Epsilon."

Epsilon is still going to be way smaller than the error due to the precision of the double's mantissa. Instead of trying to use epslilon I compare my doubles like this:

if (Math.Abs(exp-det) > Math.Abs(exp/Math.Pow(2.0, 64.0-12.0)))
{
throw new MyException(" BufferComparison failed " + det + " != " + exp);
}


Is there a better way? -or- Is there a correct way to use Epsilon?



Time is the fire in which we all burn...
QuestionHow to get the currently focused mail in outlook using c#? Pin
Inbam26-Jul-05 3:56
Inbam26-Jul-05 3:56 
Generaldialog access problem Pin
Dan Neely26-Jul-05 3:23
Dan Neely26-Jul-05 3:23 
GeneralRe: dialog access problem Pin
Patric_J27-Jul-05 4:38
Patric_J27-Jul-05 4:38 
GeneralRe: dialog access problem Pin
Dan Neely27-Jul-05 5:28
Dan Neely27-Jul-05 5:28 
GeneralDataGrid event Pin
zaboboa26-Jul-05 3:08
zaboboa26-Jul-05 3:08 
GeneralRe: DataGrid event Pin
rudy.net26-Jul-05 6:10
rudy.net26-Jul-05 6:10 
GeneralRe: DataGrid event Pin
zaboboa26-Jul-05 6:38
zaboboa26-Jul-05 6:38 
GeneralRe: DataGrid event Pin
rudy.net26-Jul-05 8:18
rudy.net26-Jul-05 8:18 
GeneralRe: DataGrid event Pin
zaboboa27-Jul-05 2:22
zaboboa27-Jul-05 2:22 
GeneralRe: DataGrid event Pin
zaboboa27-Jul-05 2:25
zaboboa27-Jul-05 2:25 
GeneralAlgorithm question Pin
Rassul Yunussov26-Jul-05 1:40
Rassul Yunussov26-Jul-05 1:40 
GeneralRe: Algorithm question Pin
Corinna John26-Jul-05 2:09
Corinna John26-Jul-05 2:09 
GeneralCreate Class library in C# without ........ Pin
emc226-Jul-05 0:52
emc226-Jul-05 0:52 
GeneralRe: Create Class library in C# without ........ Pin
S. Senthil Kumar26-Jul-05 3:37
S. Senthil Kumar26-Jul-05 3:37 
GeneralRe: Create Class library in C# without ........ Pin
Anonymous26-Jul-05 4:54
Anonymous26-Jul-05 4:54 
GeneralRe: Create Class library in C# without ........ Pin
Anonymous26-Jul-05 4:55
Anonymous26-Jul-05 4:55 
General.net remoting with webForms clients which have to react of an event fired by the server Pin
ben234526-Jul-05 0:15
ben234526-Jul-05 0:15 

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.