Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFlatScrollBar Pin
Tzunga Ma13-Nov-03 9:08
sussTzunga Ma13-Nov-03 9:08 
GeneralOutput file Pin
Anonymous13-Nov-03 8:13
Anonymous13-Nov-03 8:13 
GeneralRe: Output file Pin
David Crow13-Nov-03 9:00
David Crow13-Nov-03 9:00 
GeneralRe: Output file Pin
Anonymous13-Nov-03 9:05
Anonymous13-Nov-03 9:05 
GeneralRe: Output file Pin
David Crow13-Nov-03 9:10
David Crow13-Nov-03 9:10 
GeneralStretchDIBits problem with 16-bit (65536) color Pin
tchu13-Nov-03 7:31
tchu13-Nov-03 7:31 
GeneralFloat Roading. Pin
Mike Doner13-Nov-03 7:08
Mike Doner13-Nov-03 7:08 
GeneralRe: Float Roading. Pin
JWood13-Nov-03 8:42
JWood13-Nov-03 8:42 
You are always going to get this degradation of floating point accuracy. You need to read up on how floats are stored in IEEE 754 specification.

Floats are stored as a binary value that is composed of the mantissa and the exponent just like in regular scientific notation, however they are binary, so you are converting a decimal format into binary - this is going to cause round-off error.

It is still basicly fairly accurate. If it is just a cosmetic thing you can use format statements and they will round to the correct value for you. printf("%.3f", val); will do this.

J.
----------------------------
GeneralMerge sort Pin
Azury13-Nov-03 6:53
Azury13-Nov-03 6:53 
GeneralRe: Merge sort Pin
Dhakad13-Nov-03 20:16
Dhakad13-Nov-03 20:16 
Generalshow fields from a table on a Listbox Control using MFC VC++ Pin
swerajan13-Nov-03 5:32
swerajan13-Nov-03 5:32 
GeneralRe: show fields from a table on a Listbox Control using MFC VC++ Pin
David Crow13-Nov-03 9:04
David Crow13-Nov-03 9:04 
GeneralRe: show fields from a table on a Listbox Control using MFC VC++ Pin
valikac13-Nov-03 9:07
valikac13-Nov-03 9:07 
GeneralRe: show fields from a table on a Listbox Control using MFC VC++ Pin
David Crow13-Nov-03 9:12
David Crow13-Nov-03 9:12 
GeneralLPCOLESTR Pin
act_x13-Nov-03 5:24
act_x13-Nov-03 5:24 
GeneralRe: LPCOLESTR Pin
Michael Dunn13-Nov-03 8:08
sitebuilderMichael Dunn13-Nov-03 8:08 
Generalthread exit with code 13 Pin
avallet13-Nov-03 4:30
avallet13-Nov-03 4:30 
GeneralRe: thread exit with code 13 Pin
Michael Dunn13-Nov-03 8:09
sitebuilderMichael Dunn13-Nov-03 8:09 
GeneralWM_CTRLCOLOR Pin
Alton Williams13-Nov-03 3:51
Alton Williams13-Nov-03 3:51 
GeneralRe: WM_CTRLCOLOR Pin
Steve S13-Nov-03 4:29
Steve S13-Nov-03 4:29 
Generalpositioning problem Pin
ns13-Nov-03 3:45
ns13-Nov-03 3:45 
GeneralRe: positioning problem Pin
Ravi Bhavnani13-Nov-03 5:23
professionalRavi Bhavnani13-Nov-03 5:23 
AnswerRe: How can I Enable Drag&Drop of IE URL's in my prog Pin
Mike Dimmick13-Nov-03 3:34
Mike Dimmick13-Nov-03 3:34 
GeneralStrange network speed question Pin
Mathias S.13-Nov-03 3:09
Mathias S.13-Nov-03 3:09 
GeneralRe: Strange network speed question Pin
valikac13-Nov-03 9:10
valikac13-Nov-03 9:10 

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.