Click here to Skip to main content
15,860,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to append string with ". Pin
Emilio Garavaglia18-Jan-11 23:40
Emilio Garavaglia18-Jan-11 23:40 
QuestionRounding double to a provided decimal place Pin
PankajB18-Jan-11 23:21
PankajB18-Jan-11 23:21 
AnswerRe: Rounding double to a provided decimal place Pin
T210218-Jan-11 23:41
T210218-Jan-11 23:41 
AnswerRe: Rounding double to a provided decimal place Pin
_AnsHUMAN_ 18-Jan-11 23:42
_AnsHUMAN_ 18-Jan-11 23:42 
GeneralRe: Rounding double to a provided decimal place Pin
PankajB18-Jan-11 23:49
PankajB18-Jan-11 23:49 
GeneralRe: Rounding double to a provided decimal place Pin
Cedric Moonen19-Jan-11 0:07
Cedric Moonen19-Jan-11 0:07 
AnswerRe: Rounding double to a provided decimal place Pin
User 742933819-Jan-11 0:00
professionalUser 742933819-Jan-11 0:00 
AnswerRe: Rounding double to a provided decimal place Pin
Cedric Moonen19-Jan-11 0:01
Cedric Moonen19-Jan-11 0:01 
You won't be able to do something like that due to the nature of floating points. I suggest you google for floating point precision for more information about the subject (e.g. on wikipedia[^]).

The good news is that you most probably don't have to care about it. Why do you need to be precise like that ? Most of the time a such a precision error is perfectly acceptable.
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

AnswerRe: Rounding double to a provided decimal place Pin
Richard MacCutchan19-Jan-11 3:11
mveRichard MacCutchan19-Jan-11 3:11 
Questionx86 and x64 code performance in 64 bit w7 Pin
Chesnokov Yuriy18-Jan-11 22:24
professionalChesnokov Yuriy18-Jan-11 22:24 
AnswerRe: x86 and x64 code performance in 64 bit w7 Pin
Emilio Garavaglia18-Jan-11 22:47
Emilio Garavaglia18-Jan-11 22:47 
GeneralRe: x86 and x64 code performance in 64 bit w7 Pin
Chesnokov Yuriy18-Jan-11 23:57
professionalChesnokov Yuriy18-Jan-11 23:57 
GeneralRe: x86 and x64 code performance in 64 bit w7 Pin
Emilio Garavaglia19-Jan-11 2:48
Emilio Garavaglia19-Jan-11 2:48 
GeneralRe: x86 and x64 code performance in 64 bit w7 Pin
Chesnokov Yuriy19-Jan-11 3:04
professionalChesnokov Yuriy19-Jan-11 3:04 
AnswerRe: x86 and x64 code performance in 64 bit w7 Pin
Andrew Brock18-Jan-11 23:16
Andrew Brock18-Jan-11 23:16 
GeneralRe: x86 and x64 code performance in 64 bit w7 Pin
Chesnokov Yuriy19-Jan-11 0:01
professionalChesnokov Yuriy19-Jan-11 0:01 
QuestionRe: x86 and x64 code performance in 64 bit w7 Pin
CPallini18-Jan-11 23:43
mveCPallini18-Jan-11 23:43 
AnswerRe: x86 and x64 code performance in 64 bit w7 Pin
Chesnokov Yuriy19-Jan-11 0:04
professionalChesnokov Yuriy19-Jan-11 0:04 
GeneralRe: x86 and x64 code performance in 64 bit w7 Pin
CPallini19-Jan-11 0:15
mveCPallini19-Jan-11 0:15 
Questionthe procedure entry point getsystemtimes could not be located in the dynamic link library kernel32.dll Pin
Le@rner18-Jan-11 20:45
Le@rner18-Jan-11 20:45 
AnswerRe: the procedure entry point getsystemtimes could not be located in the dynamic link library kernel32.dll Pin
Cool_Dev18-Jan-11 20:52
Cool_Dev18-Jan-11 20:52 
GeneralRe: the procedure entry point getsystemtimes could not be located in the dynamic link library kernel32.dll Pin
Le@rner18-Jan-11 20:56
Le@rner18-Jan-11 20:56 
GeneralRe: the procedure entry point getsystemtimes could not be located in the dynamic link library kernel32.dll Pin
Adam Roderick J18-Jan-11 21:02
Adam Roderick J18-Jan-11 21:02 
GeneralRe: the procedure entry point getsystemtimes could not be located in the dynamic link library kernel32.dll Pin
Cool_Dev18-Jan-11 21:13
Cool_Dev18-Jan-11 21:13 
Questionhow to add a menu in win32 dialog box? Pin
mathivanaan18-Jan-11 18:15
mathivanaan18-Jan-11 18:15 

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.