local balance = the_possibly_large_number
local cc = 0
local plat = 0
local gold = 0
while
if balance >= 10000 then
cc = cc + 1
balance = balance - 10000
elseif balance >= 100 then
plat = plat + 1
balance = balance - 100
else
gold = balance
balance = 0
end
until (balance == 0)
text = "You currently have " .. cc .. " cc, " .. plat .. " pc, " .. gc .. " gc invested into our bank."
-- Ex: You currently have 35 cc, 13 pc, 89gc invested into our bank.