Anonymous

Module:MoneyMakingGuide: Difference between revisions

From Melvor Idle
Add rounding of item quantity
No edit summary
(Add rounding of item quantity)
Line 193: Line 193:
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name))
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name))
else
else
local qty = i.amount
local qty = num.round2(i.amount, 2)
qtyCell:wikitext(num.formatnum(qty))
qtyCell:wikitext(num.formatnum(qty))
end
end
2,875

edits