Module:PriceCalculator: Difference between revisions
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
-- Calculate and return rounded result | -- Calculate and return rounded result | ||
local result = math.floor(price * factor + 0.0) | |||
return math.max(result, 1) | |||
end | end | ||