Module:Utils: Difference between revisions

Fredg999 (talk | contribs)
Bug fixing
Fredg999 (talk | contribs)
m Added comment
Line 8: Line 8:
result = def_value
result = def_value
if type(input) == 'string' then
if type(input) == 'string' then
-- check for fraction notation
if input:match('/') == '/' then
if input:match('/') == '/' then
local denominator = 1
local denominator = 1