[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Bernd Eggink <monoped@...>
- Date: Mon, 24 Mar 2014 00:06:53 +0000
Is it really intended that
a = math.max(1, 2)
returns a = 2.0 (a float)? This change in behaviour, besides being very
counterintuitive, kills a lot of my modules which rely on tostring(a)
giving "2" (without a decimal part). It means that I would have to
surround each such operation with an ifloor() call, which is pretty
ineffective and annoying.
If that can't be changed, I'd suggest an addition of imin(), imax() and
iabs(), witch return integers.
Regards,
Bernd
--
http://sudrala.de