Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Version Pin
Jack Puppy17-May-05 18:45
Jack Puppy17-May-05 18:45 
GeneralRounding Pin
knapak17-May-05 14:20
knapak17-May-05 14:20 
GeneralRe: Rounding Pin
Christian Graus17-May-05 14:30
protectorChristian Graus17-May-05 14:30 
GeneralRe: Rounding Pin
knapak17-May-05 14:34
knapak17-May-05 14:34 
GeneralRe: Rounding Pin
Christian Graus17-May-05 14:38
protectorChristian Graus17-May-05 14:38 
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 
G_S wrote:
The Function "double ceil(double);" will always round UP.

I guess that's why it's called ceil ( as in ceiling ).

G_S wrote:
if you want to round to the nearest Integer
you need somthing else.


I was helping someone who wants to round UP. However, casting to int seems to just drop the floating point part, when I assumed it would round to the nearest int, up or down. HEnce, I suggested ceil.


Christian Graus - Microsoft MVP - C++
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 
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 

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.