I suggest you floor the whole numbers instead of rounding. It will avoid the issue of a number saying you can buy something while you can't.