[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [5.3] Converting a floating point number to integer.
- From: Eric Wing <ewmailing@...>
- Date: Sun, 16 Nov 2014 19:14:56 -0800
> I wish there was some built-in support for this (say, math.to_unsafe_int()
> or
> something).
I just noticed math.ifloor() went away.
Also I just noticed that math.floor returns either a number or integer
depending on the situation. Wasn't there already an earlier argument
(that I thought successfully) argued against having functions
sometimes return different types? (Was it power/exponent?)
Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/