Re: Strange problem
No, it returns the greatest integer less than or equal to the argument.
Hence, the term floor. Typically some sort of int() statement would do what
you're thinking of, which is to simply truncate any fractional portion of a
number.
Matthew W Lewis
> -----Original Message-----
> From: Lewis Townsend
atoms and sequences, negative numbers etc.
>
> But I thought that floor() rounded "toward zero".
> If so, then:
> floor (-0.9 + 0.5) = 0
> right? Or does it always round "down"?
|
Not Categorized, Please Help
|
|