Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
I think this needs to be pairs because we can get the empty string
flip total and sum,
Line 20:
 
local function percent_remaining(sum, total)
local remaining = sumtotal - totalsum
if remaining > 0 then
return tostring(round(-100 * remaining / total)) .. '%'
else
return nil