[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Off Topic : c++ function for rounding



On Mon, 2 Oct 2000, William Jensen wrote:

> aren't what I'm after.  I'm looking for a function that will take 1.4
> and make it 1, but 1.5 or higher is 2.  Know what I mean?  Any
> built-in c++ function to do that?

Add 0.5 to the number before you call floor.



Reply to: