convert strings and floats to decimals