fix xrange for float types