Refactor getAmount() - pull out the float conversion.