Documentation for this module may be created at Module:WeightToPercent/doc
local p = {} --p stands for package function p.convert(frame, weight, totalweight) if weight == 0 then return 0 else return 100 * totalweight / weight end end return p