Module:Utilities: Difference between revisions

Jump to navigation Jump to search
Added handling of strings to round_to_sig_fig
m Added helper for checking str is in array
Line 225: Line 225:
      
      
     return processed_text
     return processed_text
end
function p.contains(tbl, str)
    for _, v in ipairs(tbl) do
        if v == str then
            return true
        end
    end
    return false
end
end


return p
return p