allow amount to be an integer