Adding to_f for range