Added support for float values and handling of numeric values being passed as strings. Added a test case for range().