Re: Strange problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

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"?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu