Dofactory.com
Dofactory.com
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 freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

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



Last updated on Dec 21, 2023

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 freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.