Is there a round function?
C / C++ / MFC
0
Posts
0
Posters
0
Views
-
Hi all, I want to round a float/double number (to an integer)so that when its less than number.5 it is rounded down and when its greater than or equal to number.5 round up. At the moment I have discovered ceil and floor, but these are no good, as it is an either or solution. VB has a dedicated round function, is there one in VC++? cheers all Alan. "When I left you I was but the learner, now I am the Master" - Darth Vader:mad: