Open main menu
Betting Wiki
Search
Changes
← Older edit
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
Vincent
Bureaucrats
,
Interface administrators
,
Administrators
1,588
edits