At 9:07 PM +0100 1/30/07, TSa wrote:
BTW, does floor return an Int or a Num?

A floor() returns an Int of course, because by definition floor() returns an integer. See http://en.wikipedia.org/wiki/Floor_function for an explanation. Same with ceiling(), and some other operators. If anything, people should be able to call floor() etc explicitly if they want to make their Num->Int conversions explicit rather than implicit. -- Darren Duncan

Reply via email to