Module:Progression rainbow: Difference between revisions

Content deleted Content added
okay, add text, see how this breaks
here
Line 16:
 
local function class_percent(param, divisor)
-- implementation of rounding to first decimal in
-- http://lua-users.org/wiki/SimpleRound
return tostring(round(100 * param / divisor)) .. '%'
end
 
local function width_remainingpercent_remaining(sum, divisor)
sum = sum - divisor
if sum ~= 0 then -- find this a bit specious