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

C / C++ / MFC

 
QuestionHow to append string with ". Pin
raju_shiva18-Jan-11 23:32
raju_shiva18-Jan-11 23:32 
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 
Have a look here[^] to see how a double variable is stored in memory.
You miss a ';' in your Round2 function, but otherwise the rounding functions are fine. 64 bits just isn't accurate enough to store the numbers you need.

modified 13-Sep-18 21:01pm.

AnswerRe: Rounding double to a provided decimal place Pin
Cedric Moonen19-Jan-11 0:01
Cedric Moonen19-Jan-11 0:01 
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 

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.