Changed float and decimal type safety

The is_decimal function is now used and allows the data type to be 
any number including but not limited to float or decimal.