Content deleted Content added
S.A. Julio (talk | contribs) support alternate output |
S.A. Julio (talk | contribs) m adjust |
||
Line 156:
if percentage_format == 'hundred' or percentage_format == 100 then
local point_perc = mm._precision_format(((points) / (matches*win_points)*100), 2)
▲ local point_perc = mm._precision_format((points) / (matches*win_points), 3)
end
if matches == 0 then
-- Escape for zero matches
point_perc = '—'
elseif points ~= (matches*win_points)
-- Drop the leading zero (from the string)
point_perc = string.sub(point_perc,2,string.len(point_perc))
|