|
|
> > Actually, could you list the differences between "int" and "floor"?
>
> According to their definitions... shouldn't they be the same thing?...
Yes, they *should* be the same thing... The difference right now is that
floor always rounds down, but int always rounds towards zero (this is
usually called trunc). This also has a rather unfortunate effect on mod,
where, for example, -23 mod 10 is currently -3 when it should be 8.
Post a reply to this message
|
|