Module:MOS: Difference between revisions

Inthar (talk | contribs)
No edit summary
Inthar (talk | contribs)
No edit summary
Line 17: Line 17:
nL = tonumber(nL)
nL = tonumber(nL)
ns = tonumber(ns)
ns = tonumber(ns)
equave = equave:match('^%((.*)-equivalent%)$') or rat.new(2, 1)
equave = rat.as_ratio(equave:match('^%((.*)-equivalent%)$')) or rat.new(2, 1)
if nL == nil or ns == nil or equave == nil then
if nL == nil or ns == nil or equave == nil then
return nil
return nil