Module:Math: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
en>Primefac
(better median handling)
en>Primefac
(error handling for count)
Line 241: Line 241:
local count = #vals
local count = #vals
table.sort(vals)
table.sort(vals)
if count == 0 then
return 0
end
if p._mod(count, 2) == 0 then
if p._mod(count, 2) == 0 then