lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Lua 5.3: Should min/max return a float, if it is given integer?
From
: Andrew Starks <andrew.starks@
...
>
Date
: Wed, 4 Jun 2014 11:48:11 -0500
print(math.min(1,2), math.max(1,2))
--1.0, 2.0
I would have expected integers.
-Andrew
Follow-Ups
:
Re: Lua 5.3: Should min/max return a float, if it is given integer?
,
Dirk Laurie
Re: Lua 5.3: Should min/max return a float, if it is given integer?
,
Philipp Janda
Prev by Date:
Re: Proposal: Trailing comma in function calls
Next by Date:
Re: Proposal: Trailing comma in function calls
Previous by thread:
Re: ipairs/pairs second argument?
Next by thread:
Re: Lua 5.3: Should min/max return a float, if it is given integer?
Index(es):
Date
Thread