Function degreesToCardinal