Changes

Jump to navigation Jump to search

Module:Math

47 bytes added, 01:26, 10 September 2019
m
41 revisions imported
local count = #vals
table.sort(vals)
if count == 0 then
return 0
end
if p._mod(count, 2) == 0 then
return (vals[count/2] + vals[count/2+1])/2
else
return vals[math.ceil(count/2+1)]
end
end

Navigation menu