I have a game I am working on and am storing the amount of money as a single number instead of pieces of gold, silver and copper.
E.g PlayerX has 123 gold, 45 silver and 67 copper In this instance the database entry would store 1234567 as the money value. 100 copper = 1 silver and 100 silver = 1 gold
Is there an easy way to convert the long number into gold, silver and copper values easily?