Fixed input check for decimal and negative number to work for all negative, 0, decimal, fractions, and strings.