Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Problem Pin
Iain Clarke, Warrior Programmer14-Jan-05 0:34
Iain Clarke, Warrior Programmer14-Jan-05 0:34 
GeneralRe: CString Problem Pin
Dody_DK15-Jan-05 0:40
Dody_DK15-Jan-05 0:40 
GeneralStatus Bar (continued) Pin
LighthouseJ13-Jan-05 12:33
LighthouseJ13-Jan-05 12:33 
GeneralRe: Status Bar (continued) Pin
KaЯl14-Jan-05 2:16
KaЯl14-Jan-05 2:16 
GeneralScrollbars in a Dialog Pin
dlarkin7713-Jan-05 9:52
dlarkin7713-Jan-05 9:52 
GeneralRe: Scrollbars in a Dialog Pin
Shog913-Jan-05 11:46
sitebuilderShog913-Jan-05 11:46 
GeneralRe: Scrollbars in a Dialog Pin
dlarkin7714-Jan-05 7:25
dlarkin7714-Jan-05 7:25 
GeneralVC++6 + VS SP6 = COMPUTATION BUG!! Pin
Fred D.13-Jan-05 6:23
Fred D.13-Jan-05 6:23 
Hi guys,

PC : Intel PIII 700MHz with W2k SP6

I was using VC++ 6 with VisualStudio SP4 and the result of a calculation like this one..

double res = 25.5/1000; // would give you 0.025500000000, as you can expect..

Now, here’s something quite weird:
I’ve just upgraded VS to SP6 and the same calculation now gives me..

double res = 25.5/1000; // 0.025499999999999998 ????? D'Oh! | :doh:

even worse if you write:
double t2 = 5.f*0.001f; // 0.0050000002374872565 :wtf:

And it seems to be like that every time you try to compute 2 doubles or a double and an int for ex. (multiplication or division !)

as anyone noticed something similar? Wonder if there is any fix for that one.

Tx
Fred
GeneralRe: VC++6 + VS SP6 = COMPUTATION BUG!! Pin
PJ Arends13-Jan-05 6:46
professionalPJ Arends13-Jan-05 6:46 
GeneralRe: VC++6 + VS SP6 = COMPUTATION BUG!! Pin
Antony M Kancidrowski13-Jan-05 6:52
Antony M Kancidrowski13-Jan-05 6:52 
GeneralRe: VC++6 + VS SP6 = COMPUTATION BUG!! Pin
Fred D.13-Jan-05 7:33
Fred D.13-Jan-05 7:33 
GeneralRe: VC++6 + VS SP6 = COMPUTATION BUG!! Pin
Antony M Kancidrowski13-Jan-05 12:56
Antony M Kancidrowski13-Jan-05 12:56 
QuestionHow to Run a executable file using c++ program Pin
Aqueel13-Jan-05 3:56
Aqueel13-Jan-05 3:56 
AnswerRe: How to Run a executable file using c++ program Pin
Budric B.13-Jan-05 4:13
Budric B.13-Jan-05 4:13 
GeneralRe: How to Run a executable file using c++ program Pin
toxcct13-Jan-05 22:42
toxcct13-Jan-05 22:42 
AnswerRe: How to Run a executable file using c++ program Pin
Blake Miller13-Jan-05 4:13
Blake Miller13-Jan-05 4:13 
AnswerRe: How to Run a executable file using c++ program Pin
David Crow13-Jan-05 5:57
David Crow13-Jan-05 5:57 
AnswerRe: How to Run a executable file using c++ program Pin
Michael Dunn13-Jan-05 7:14
sitebuilderMichael Dunn13-Jan-05 7:14 
Generalhooking menu item in active X Pin
mansour_ahmadian13-Jan-05 2:43
mansour_ahmadian13-Jan-05 2:43 
GeneralRe: hooking menu item in active X Pin
Roger Allen13-Jan-05 3:14
Roger Allen13-Jan-05 3:14 
QuestionAuto-update of my app? Pin
Hoornet9313-Jan-05 1:57
Hoornet9313-Jan-05 1:57 
AnswerRe: Auto-update of my app? Pin
ThatsAlok13-Jan-05 2:57
ThatsAlok13-Jan-05 2:57 
GeneralRe: Auto-update of my app? Pin
Hoornet9313-Jan-05 3:13
Hoornet9313-Jan-05 3:13 
GeneralRe: Auto-update of my app? Pin
ThatsAlok13-Jan-05 3:27
ThatsAlok13-Jan-05 3:27 
GeneralRe: Auto-update of my app? Pin
Hoornet9314-Jan-05 1:19
Hoornet9314-Jan-05 1:19 

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.