Corrected rounding of gold & silver calculations

This should fix https://github.com/lefnire/habitrpg/issues/1560.
For example, if I have 1.957 "coins", under the old code that is converted to 2 gold and 96 silver, instead of 1 gold and 95 silver.