Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless Dialogs Pin
David Crow22-Jun-04 5:59
David Crow22-Jun-04 5:59 
GeneralRe: Modeless Dialogs Pin
si_6923-Jun-04 1:17
si_6923-Jun-04 1:17 
GeneralRe: Modeless Dialogs Pin
David Crow23-Jun-04 2:04
David Crow23-Jun-04 2:04 
GeneralRe: Modeless Dialogs Pin
si_6923-Jun-04 2:28
si_6923-Jun-04 2:28 
GeneralRe: Modeless Dialogs Pin
David Crow23-Jun-04 2:40
David Crow23-Jun-04 2:40 
Generaldouble and float problem Pin
NMiceli22-Jun-04 3:50
NMiceli22-Jun-04 3:50 
GeneralRe: double and float problem Pin
Tim Smith22-Jun-04 4:01
Tim Smith22-Jun-04 4:01 
GeneralRe: double and float problem Pin
Antony M Kancidrowski22-Jun-04 4:20
Antony M Kancidrowski22-Jun-04 4:20 
double c=98/100;

would give

c = 0.0 as 98/100 is integer arithmetic, it is then case to double! Wink | ;)

OK,

double c=(a/b) + 0.0000000001;

will give c = 0.98

NOTE: This work around only makes the answer correct to 10dps.

If you change everything to float you will probably get a different answer. These calculations all depend on the format of the floating point number and its precision.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fuity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Williams (Little Britain)

GeneralRe: double and float problem Pin
David Crow22-Jun-04 6:09
David Crow22-Jun-04 6:09 
GeneralRe: double and float problem Pin
NMiceli22-Jun-04 6:58
NMiceli22-Jun-04 6:58 
Questionvirtual member is not called, but base implementation instead? Pin
CherezZaboro22-Jun-04 3:40
CherezZaboro22-Jun-04 3:40 
AnswerRe: virtual member is not called, but base implementation instead? Pin
Antony M Kancidrowski22-Jun-04 3:47
Antony M Kancidrowski22-Jun-04 3:47 
GeneralRe: virtual member is not called, but base implementation instead? Pin
CherezZaboro22-Jun-04 4:45
CherezZaboro22-Jun-04 4:45 
GeneralVC++ 6, ATL windows service, pausing... Pin
CherezZaboro22-Jun-04 3:33
CherezZaboro22-Jun-04 3:33 
GeneralRe: VC++ 6, ATL windows service, pausing... Pin
palbano22-Jun-04 5:44
palbano22-Jun-04 5:44 
GeneralInfo on Hooks Pin
Member 115017622-Jun-04 3:27
Member 115017622-Jun-04 3:27 
GeneralRe: Info on Hooks Pin
Anonymous22-Jun-04 5:53
Anonymous22-Jun-04 5:53 
GeneralRe: Info on Hooks Pin
gamitech22-Jun-04 13:00
gamitech22-Jun-04 13:00 
Generalstring to PDU hex conversion function Pin
sm_sharp22-Jun-04 3:15
susssm_sharp22-Jun-04 3:15 
GeneralRe: string to PDU hex conversion function Pin
jmkhael22-Jun-04 4:36
jmkhael22-Jun-04 4:36 
GeneralRe: string to PDU hex conversion function Pin
HouseSparrow27-Jun-04 22:51
HouseSparrow27-Jun-04 22:51 
GeneralOpenfile dialog box Pin
x-trate22-Jun-04 2:03
x-trate22-Jun-04 2:03 
GeneralRe: Openfile dialog box Pin
P-Rex22-Jun-04 2:16
P-Rex22-Jun-04 2:16 
GeneralRe: Openfile dialog box Pin
David Crow22-Jun-04 2:26
David Crow22-Jun-04 2:26 
GeneralRe: Openfile dialog box Pin
gamitech22-Jun-04 12:55
gamitech22-Jun-04 12:55 

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.