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.
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
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
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
4 matches
Mail list logo