Handle float inputs to truncateAmountDigits (necessary on Python 2.6).