Convert vector to float