Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help with graph syntax Pin
Member 38225323-May-10 16:39
Member 38225323-May-10 16:39 
GeneralRe: help with graph syntax Pin
enhzflep3-May-10 17:01
enhzflep3-May-10 17:01 
GeneralRe: help with graph syntax Pin
Member 38225323-May-10 17:10
Member 38225323-May-10 17:10 
GeneralRe: help with graph syntax Pin
enhzflep3-May-10 17:28
enhzflep3-May-10 17:28 
GeneralRe: help with graph syntax Pin
Member 38225323-May-10 17:30
Member 38225323-May-10 17:30 
GeneralRe: help with graph syntax Pin
Cedric Moonen3-May-10 20:30
Cedric Moonen3-May-10 20:30 
Questionatof conversion issue Pin
kasi143-May-10 12:14
kasi143-May-10 12:14 
AnswerRe: atof conversion issue Pin
Tim Craig3-May-10 12:26
Tim Craig3-May-10 12:26 
Well, double has more precision than float and that is what you're seeing most likely. Most values can't be represented exactly in either float or double so the approximate values will vary if you compare directly. For this reason, you can almost never reliably compare floating point values for equality. In fact, as you're seeing, you probably need to be careful about inequalities when the values being compared are "close". You always need compare using an "epsilon" value, a small value indicating "close enough". Similarly, you need to be careful the ordering of calculations if the values vary wildly in range. For instance, subtracting a small value from a large one may result in no change at all.
The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

AnswerRe: atof conversion issue Pin
Stephen Hewitt3-May-10 14:00
Stephen Hewitt3-May-10 14:00 
Questionmaking ini file in Documents and Settings WritePrivateProfileString to Pin
malaugh3-May-10 12:01
malaugh3-May-10 12:01 
AnswerRe: making ini file in Documents and Settings WritePrivateProfileString to Pin
PJ Arends3-May-10 13:18
professionalPJ Arends3-May-10 13:18 
AnswerRe: making ini file in Documents and Settings WritePrivateProfileString to Pin
«_Superman_»3-May-10 13:18
professional«_Superman_»3-May-10 13:18 
AnswerRe: making ini file in Documents and Settings WritePrivateProfileString to [modified] Pin
wangningyu4-May-10 0:06
wangningyu4-May-10 0:06 
QuestionRe: making ini file in Documents and Settings WritePrivateProfileString to Pin
David Crow4-May-10 3:08
David Crow4-May-10 3:08 
Questionbreak point not hit in release mode Pin
rayjoslyn3-May-10 10:57
rayjoslyn3-May-10 10:57 
AnswerRe: break point not hit in release mode Pin
«_Superman_»3-May-10 11:16
professional«_Superman_»3-May-10 11:16 
GeneralRe: break point not hit in release mode Pin
rayjoslyn3-May-10 11:20
rayjoslyn3-May-10 11:20 
GeneralRe: break point not hit in release mode Pin
rayjoslyn4-May-10 10:59
rayjoslyn4-May-10 10:59 
AnswerRe: break point not hit in release mode Pin
Stephen Hewitt3-May-10 14:01
Stephen Hewitt3-May-10 14:01 
AnswerRe: break point not hit in release mode Pin
loyal ginger3-May-10 14:21
loyal ginger3-May-10 14:21 
GeneralRe: break point not hit in release mode Pin
rayjoslyn4-May-10 4:28
rayjoslyn4-May-10 4:28 
GeneralRe: break point not hit in release mode Pin
rayjoslyn4-May-10 7:47
rayjoslyn4-May-10 7:47 
QuestionProgrammatically find the FTP root directory? Pin
Ed K3-May-10 9:08
Ed K3-May-10 9:08 
AnswerRe: Programmatically find the FTP root directory? Pin
Code-o-mat3-May-10 9:23
Code-o-mat3-May-10 9:23 
GeneralRe: Programmatically find the FTP root directory? Pin
Ed K3-May-10 9:42
Ed K3-May-10 9:42 

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.