PDA

View Full Version : How do "floor" and "ceiling" functions work?


gmalone
02-02-2006, 12:50 PM
My students and I are trying to understand how the floor and ceiling functions work in Alice (world functions). Can't find any doc on it, and where it is allowed to be dropped in code doesn't make sense to us.

Thx.
Greg

kingsamses
02-02-2006, 03:27 PM
They're things from math. If you have "floor 4.5", I'm pretty sure it will round it down to 4, and "ceiling 4.5" will round it up to 5.