Updated Range() to work with doubles, floats and chars