Module:MoneyMakingGuide: Difference between revisions

m
Add thousand separator to item quantity
(Add rounding to outputs)
m (Add thousand separator to item quantity)
Line 175: Line 175:
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name))
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name))
else
else
qtyCell:wikitext(num.round2(i.amount))
local qty = num.round2(i.amount)
qtyCell:wikitext(num.formatnum(qty))
end
end
qtyCell:done()
qtyCell:done()
2,875

edits