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

C / C++ / MFC

 
GeneralRe: Rounding Pin
knapak17-May-05 15:00
knapak17-May-05 15:00 
GeneralRe: Rounding Pin
G_S17-May-05 16:32
G_S17-May-05 16:32 
GeneralRe: Rounding Pin
Christian Graus17-May-05 16:37
protectorChristian Graus17-May-05 16:37 
GeneralRe: Rounding Pin
Shog917-May-05 17:53
sitebuilderShog917-May-05 17:53 
GeneralRe: Rounding Pin
Bob Stanneveld17-May-05 22:19
Bob Stanneveld17-May-05 22:19 
GeneralRe: Rounding Pin
Shog917-May-05 14:38
sitebuilderShog917-May-05 14:38 
GeneralRe: Rounding Pin
knapak17-May-05 15:00
knapak17-May-05 15:00 
GeneralRe: Rounding Pin
PJ Arends17-May-05 16:51
professionalPJ Arends17-May-05 16:51 
double d = 49.99999999;
int i = (int)(d + 0.5);

i will now be properly rounded.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: Rounding Pin
G_S17-May-05 17:10
G_S17-May-05 17:10 
GeneralRe: Rounding Pin
cmk17-May-05 19:01
cmk17-May-05 19:01 
Generaltary icon popup text Pin
eero_p17-May-05 12:00
eero_p17-May-05 12:00 
GeneralRe: tary icon popup text Pin
Peter Weyzen17-May-05 12:55
Peter Weyzen17-May-05 12:55 
GeneralRe: tary icon popup text Pin
eero_p17-May-05 20:54
eero_p17-May-05 20:54 
GeneralRe: tary icon popup text Pin
Peter Weyzen18-May-05 6:15
Peter Weyzen18-May-05 6:15 
GeneralProject Pin
Anonymous17-May-05 11:11
Anonymous17-May-05 11:11 
GeneralRe: Project Pin
Christian Graus17-May-05 13:30
protectorChristian Graus17-May-05 13:30 
GeneralRe: Project Pin
Anonymous17-May-05 15:19
Anonymous17-May-05 15:19 
GeneralRe: Project Pin
Christian Graus17-May-05 15:23
protectorChristian Graus17-May-05 15:23 
GeneralRe: Project Pin
Anonymous17-May-05 15:30
Anonymous17-May-05 15:30 
GeneralRe: Project Pin
Anonymous17-May-05 17:17
Anonymous17-May-05 17:17 
GeneralRe: Project Pin
FlyingTinman17-May-05 22:40
FlyingTinman17-May-05 22:40 
GeneralRe: Project Pin
David Crow18-May-05 2:32
David Crow18-May-05 2:32 
GeneralRe: Project Pin
Bob Stanneveld18-May-05 2:42
Bob Stanneveld18-May-05 2:42 
GeneralRe: Project Pin
Anonymous18-May-05 9:36
Anonymous18-May-05 9:36 
GeneralVisual C++ .NET 2003 Suppress method Pin
Gagnon Claude17-May-05 8:59
Gagnon Claude17-May-05 8:59 

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.