I am trying to use the following code to convert the degrees that I get from the OpenWeatherMaps API for the wind into an actual cardinal direction. However, only the defau