Fix for a possible error if an amount with more than two decimal points is supplied