Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Use a CFrameWind. Pin
K ARUN KUMAR4-May-10 0:27
K ARUN KUMAR4-May-10 0:27 
GeneralRe: CFormView and Child Dialogs (read thisprevious post) Pin
Software_Developer4-May-10 0:50
Software_Developer4-May-10 0:50 
GeneralRe: CFormView and Child Dialogs (read thisprevious post) Pin
K ARUN KUMAR4-May-10 1:00
K ARUN KUMAR4-May-10 1:00 
AnswerRe: How To Restrict Dialog Box in an SDI to be With in Application Boundaries Pin
David Crow4-May-10 3:00
David Crow4-May-10 3:00 
GeneralRe: How To Restrict Dialog Box in an SDI to be With in Application Boundaries [modified] Pin
K ARUN KUMAR4-May-10 18:21
K ARUN KUMAR4-May-10 18:21 
Questionwin32 debug to win32 release mode in vc6 Pin
Member 36537513-May-10 18:52
Member 36537513-May-10 18:52 
AnswerRe: win32 debug to win32 release mode in vc6 Pin
Software_Developer3-May-10 19:23
Software_Developer3-May-10 19:23 
GeneralRe: win32 debug to win32 release mode in vc6 Pin
Member 36537513-May-10 19:57
Member 36537513-May-10 19:57 
QuestionRe: win32 debug to win32 release mode in vc6 Pin
David Crow4-May-10 3:04
David Crow4-May-10 3:04 
Questionhelp with graph syntax Pin
Member 38225323-May-10 15:35
Member 38225323-May-10 15:35 
AnswerRe: help with graph syntax Pin
enhzflep3-May-10 16:19
enhzflep3-May-10 16:19 
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 

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.