Click here to Skip to main content
15,906,218 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help On A Oracle Insert Statement Pin
Heath Stewart30-Oct-04 3:39
protectorHeath Stewart30-Oct-04 3:39 
GeneralRe: Help On A Oracle Insert Statement Pin
Alex Korchemniy29-Oct-04 20:50
Alex Korchemniy29-Oct-04 20:50 
GeneralRe: Help On A Oracle Insert Statement Pin
macsgirl29-Oct-04 21:15
macsgirl29-Oct-04 21:15 
Generalplay video in windows form Pin
machocr29-Oct-04 10:42
machocr29-Oct-04 10:42 
GeneralRe: play video in windows form Pin
Heath Stewart30-Oct-04 3:36
protectorHeath Stewart30-Oct-04 3:36 
Generalsockets Pin
great_joe_8529-Oct-04 10:27
great_joe_8529-Oct-04 10:27 
GeneralRe: sockets Pin
Alex Korchemniy29-Oct-04 20:54
Alex Korchemniy29-Oct-04 20:54 
QuestionSetting return code in console app? Pin
LongRange.Shooter29-Oct-04 10:15
LongRange.Shooter29-Oct-04 10:15 
AnswerRe: Setting return code in console app? Pin
Heath Stewart30-Oct-04 3:30
protectorHeath Stewart30-Oct-04 3:30 
GeneralRe: Setting return code in console app? Pin
LongRange.Shooter1-Nov-04 2:23
LongRange.Shooter1-Nov-04 2:23 
Generalmemcopy in C# Pin
youssef29-Oct-04 10:07
youssef29-Oct-04 10:07 
GeneralRe: memcopy in C# Pin
Ami Bar29-Oct-04 11:51
Ami Bar29-Oct-04 11:51 
GeneralRe: memcopy in C# Pin
Heath Stewart30-Oct-04 3:27
protectorHeath Stewart30-Oct-04 3:27 
QuestionBest way to validate dates? Pin
house29-Oct-04 9:35
house29-Oct-04 9:35 
AnswerRe: Best way to validate dates? Pin
Luis Alonso Ramos29-Oct-04 9:39
Luis Alonso Ramos29-Oct-04 9:39 
GeneralRe: Best way to validate dates? Pin
house1-Nov-04 2:55
house1-Nov-04 2:55 
GeneralRe: Best way to validate dates? Pin
Luis Alonso Ramos1-Nov-04 5:31
Luis Alonso Ramos1-Nov-04 5:31 
AnswerRe: Best way to validate dates? Pin
Nick Parker29-Oct-04 14:20
protectorNick Parker29-Oct-04 14:20 
QuestionHow to initially set the focus to a control Pin
Luis Alonso Ramos29-Oct-04 9:28
Luis Alonso Ramos29-Oct-04 9:28 
AnswerRe: How to initially set the focus to a control Pin
Luis Alonso Ramos29-Oct-04 9:44
Luis Alonso Ramos29-Oct-04 9:44 
GeneralC# Double arithmetic producing unstable answers Pin
ldself29-Oct-04 7:46
ldself29-Oct-04 7:46 
GeneralRe: C# Double arithmetic producing unstable answers Pin
Nick Parker29-Oct-04 8:15
protectorNick Parker29-Oct-04 8:15 
ldself wrote:
Any help with an explanation and/or solution is greatly appreciated.

Check out the Double.Epsilon Field[^], it is explained there. Here is a quick example:

double diff = (double)1/3  - (double).33333;
if(Math.Abs(diff) < Double.Epsilon)
    Console.WriteLine("They are equal.");
else
    Console.WriteLine("They are not equal.");


- Nick Parker
My Blog | My Articles

GeneralRe: C# Double arithmetic producing unstable answers Pin
Hugo Migneron29-Oct-04 8:17
Hugo Migneron29-Oct-04 8:17 
GeneralRe: C# Double arithmetic producing unstable answers Pin
Nick Parker29-Oct-04 15:08
protectorNick Parker29-Oct-04 15:08 
Generalstructs and 'using' Pin
Nemanja Trifunovic29-Oct-04 6:47
Nemanja Trifunovic29-Oct-04 6:47 

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.