Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: returning prematurely from blocked function Pin
Tim Smith10-Feb-02 13:21
Tim Smith10-Feb-02 13:21 
GeneralRe: returning prematurely from blocked function Pin
567890123410-Feb-02 3:45
567890123410-Feb-02 3:45 
GeneralRe: returning prematurely from blocked function Pin
10-Feb-02 12:12
suss10-Feb-02 12:12 
GeneralQuestion: Dynamic CEdit Window with Shortcut keys Pin
Kevin Cao9-Feb-02 23:05
Kevin Cao9-Feb-02 23:05 
GeneralRe: Question: Dynamic CEdit Window with Shortcut keys Pin
Christian Graus9-Feb-02 23:25
protectorChristian Graus9-Feb-02 23:25 
GeneralAgain GDI+ but diffrenet question Pin
Mazdak9-Feb-02 22:40
Mazdak9-Feb-02 22:40 
GeneralRe: Again GDI+ but diffrenet question Pin
Christian Graus9-Feb-02 22:57
protectorChristian Graus9-Feb-02 22:57 
GeneralFloating Point Variables Pin
9-Feb-02 22:10
suss9-Feb-02 22:10 
This problem involves floating point variables. When ever I add or subtract to a floating point variable I get strange numbers. For example if I add 0.5f to 5.0f, I get 5.499999999999 instead of 5.5. Here is an example:

float fExample = 5.0f;
fExample = fExample + 0.5f;

// fExample is now 5.499999999 !!!!

Is there something I am doing wrong, or is there a way of doing this without getting those ridiculous values.

Thanks in advance,

James Bird
GeneralRe: Floating Point Variables Pin
Christian Graus9-Feb-02 22:40
protectorChristian Graus9-Feb-02 22:40 
GeneralRe: Floating Point Variables Pin
alex.barylski9-Feb-02 22:48
alex.barylski9-Feb-02 22:48 
GeneralRe: Floating Point Variables Pin
Tim Deveaux10-Feb-02 3:18
Tim Deveaux10-Feb-02 3:18 
GeneralRe: Floating Point Variables Pin
Tim Smith10-Feb-02 3:25
Tim Smith10-Feb-02 3:25 
QuestionHeap, stack? Pin
Jasmyn9-Feb-02 22:06
Jasmyn9-Feb-02 22:06 
AnswerRe: Heap, stack? Pin
alex.barylski9-Feb-02 22:25
alex.barylski9-Feb-02 22:25 
GeneralRe: Heap, stack? Pin
Jasmyn9-Feb-02 23:04
Jasmyn9-Feb-02 23:04 
GeneralRe: Heap, stack? Pin
alex.barylski9-Feb-02 23:34
alex.barylski9-Feb-02 23:34 
GeneralRe: Heap, stack? Pin
Nish Nishant9-Feb-02 23:13
sitebuilderNish Nishant9-Feb-02 23:13 
GeneralRe: Heap, stack? Pin
alex.barylski9-Feb-02 23:31
alex.barylski9-Feb-02 23:31 
GeneralRe: Heap, stack? Pin
Nish Nishant10-Feb-02 0:19
sitebuilderNish Nishant10-Feb-02 0:19 
GeneralRe: Heap, stack? Pin
alex.barylski10-Feb-02 12:04
alex.barylski10-Feb-02 12:04 
AnswerRe: Heap, stack? Pin
Alvaro Mendez11-Feb-02 12:10
Alvaro Mendez11-Feb-02 12:10 
GeneralGlobals Pin
alex.barylski9-Feb-02 22:01
alex.barylski9-Feb-02 22:01 
GeneralRe: Globals Pin
Paul M Watt9-Feb-02 22:39
mentorPaul M Watt9-Feb-02 22:39 
GeneralRe: Globals Pin
alex.barylski9-Feb-02 22:44
alex.barylski9-Feb-02 22:44 
GeneralRe: Globals Pin
Christian Graus9-Feb-02 22:42
protectorChristian Graus9-Feb-02 22: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.