DEGREES


Converts radians into degrees.

Syntax:

DEGREES(radians)

radians is the angle in radians to be converted to degrees.

Example:

DEGREES(PI())

returns 180 degrees


Application:

Calculating and Displaying Bearing on a Map


Imagine you have a database table that stores the direction of a vessel's course, but for internal calculations, the course is stored in radians. To present this information to a user in a more understandable format (degrees), you would use the DEGREES() function.


Here's an example using a hypothetical Vessels table:

Vessels Table

Vessel ID

Vessel Name

Course In Radians

A
B
C
1
101
Sea Serpent
1.5708
2
102
Oceanic Drifter
0.7854
3
103
Starlight
3.1416
4
104
Ironclad
4.7214

Now, you want to retrieve this data and display the course in degrees. You can use the DEGREES() function.


Results Table:

Vessel ID

Vessel Name

Course In Radians

Course In Degrees

A
B
C
D
1
101
Sea Serpent
1.5708
90.000210459
2
102
Oceanic Drifter
0.7854
45.00010523
3
103
Starlight
3.1416
180.000420918
4
104
Ironclad
4.7214
270.516293393

As you can see, the DEGREES() function takes the value from the CourseInRadians column, converts it to degrees, and presents the result in a new column called CourseInDegrees. This makes the data much easier for a user to interpret, as they can quickly understand that the "Sea Serpent" is heading East (90 degrees) and the "Starlight" is heading West (180 degrees).





This page is protected by Google reCAPTCHA. Privacy - Terms.
 
Built using Zapof