| Input DIR |
STRING(3) (direction in compass readings) |
| L |
INT (language selection) |
| Output |
INT (direction in degrees) |
|
DIR_TO_DEG converts a NNE direction in the form to degrees. It will be up to 3 points evaluated, corresponding to a resolution of 22.5°. The output is integer. The input must be in capital letters and East must be marked with O or E. The string NO is converted to 45°. L specifies the used language, for detailed information see data type CONSTANTS_LANGUAGE. |
| The cardinal points are |
0° = North, 90° = East, 180° = South, 270° = West. The conversion is done according to the following table: |