Re: Off Topic : c++ function for rounding

2000-10-02 Thread William T Wilson
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.

Re: Off Topic : c++ function for rounding

2000-10-02 Thread Hubert Chan
William Jensen <[EMAIL PROTECTED]> writes: > Hey guys, > > I know this isn't the right list, but how would I even find the 'right list' > for a c++ question? I know about ceil and floor but those 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

Re: Off Topic : c++ function for rounding

2000-10-02 Thread Aaron Brashears
round(x) = floor( x + 0.5f); William Jensen wrote: > I know this isn't the right list, but how would I even find the 'right list' > for a c++ question? I know about ceil and floor but those 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

Off Topic : c++ function for rounding

2000-10-02 Thread William Jensen
Hey guys, I know this isn't the right list, but how would I even find the 'right list' for a c++ question? I know about ceil and floor but those 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++ funct