Originally Posted by
Fiel
Another way to think of "floor" would be to round down. Always round down.
This is different from typecasting "int", though. "int" rounds toward zero whereas floor rounds down. That makes truncation different for values below zero. For the purposes of this calculation, though, floor and typecasting int do the same thing.
Bookmarks