lua-users home
lua-l archive

Re: math.min, math.max

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 04/09/2014 12:27 PM, Dirk Laurie wrote:
But the only value of x for which always y = max(x,y) is x=-math.huge. At present you don't get nil, you get an error.
The only _numeric_ value. But if you define max(nil, y) to be y and min(nil, y) to be y as well you would have another value that would work for both functions.
--
Thomas

AltStyle によって変換されたページ (->オリジナル) /