lua-users home
lua-l archive

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


On Tue, May 7, 2019 at 6:01 PM Andrew Starks wrote:

I don't think I know enough math, but do math people have opinions about how long a number is, before they take mushrooms?


Why asking mathematicians?  Lua is for programmers!  ;-)
Without mushrooms many programmer would want #n to be size of a number in bits
#0 == 0
#7 == 3
#8 == 4
#8.0 == 4
#(2^100) == 101
#0.01 == 0
#(math.huge) == math.huge
#(-5) raises error or returns NaN
direction of rounding (such as in #7.5) is not specified and depends on implementation