Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

SQL DEGREES Function

The DEGREES function converts angles from radians to degrees.

The specified input value must be a number.

To convert degrees back to radians use the RADIANS function.

Example

#

This example converts the radian input values to degrees.

SELECT DEGREES((PI()/4)) AS 'PI/4',
       DEGREES((PI()/2)) AS 'PI/2',
       DEGREES((PI())) AS 'PI'
Result:  1 record
PI/4 PI/2 PI
45 90 180

Note: PI is a function that returns the value of π (3.14).


Syntax

Syntax of the DEGREES function.

DEGREES(value)

value -- a number representing the angle in radians.


You may also like



Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

Guides


vsn 3.1