Added functionality to handle floating point numbers.