©SQL :: Manager
HomeProgram InformationTechnical detailsFree downloadDonate for a cup of coffee
myway SQL Manager for MySQL and MariaDB, Download on Uptodown
SQL functionMySQLMariaDB

The DEGREES SQL Function in MySQL and MariaDB - Degrees calculation from radians

DEGREESSyntax:DEGREES(Number)
Return value:FLOAT
Function type:Numeric function
Function Description

The DEGREES() function returns the angle in degrees from a "Number" in radians.

The ASIN(), ACOS(), ATAN() and ATAN2() functions return radians.

Given a radian measure of π (PI) the function returns 180 degrees.

The DEGREES() function returns NULL if the value of "Number" is NULL.

DEGREES() is the inverse function of RADIANS().

SQL Examples for the DEGREES function

 1
 2
 3
 4
 5
 6
 7
 8

select degrees(0.7853981633974483);
select degrees(1.0471975511965976);
select degrees(3.141592653589793);
select degrees(pi());
select degrees(6.283185307179586);
select degrees(0);

degrees(0.7853981633974483)
double(23)
45
degrees(1.0471975511965976)
double(23)
59.99999999999999
degrees(3.141592653589793)
double(23)
180
degrees(pi())
double(23)
180
degrees(6.283185307179586)
double(23)
360
degrees(0)
double(23)
0
The examples were created with the MyWAY SQL manager: Download

How to use the DEGREES() function in MySQL and MariaDB databases

The DEGREES() function in MySQL and MariaDB is needed to convert angles from radians to degrees, for example for better readability or compatibility with other systems that use degrees.
DECODEDECODE_ORACLEDEFAULTDEGREESDES_DECRYPTDES_ENCRYPTELT

Further MySQL und MariaDB SQL Numeric functions

BIT_COUNTBIT_COUNT(Integer)
More about BIT_COUNT Function

CEILCEIL(Number)
More about CEIL Function

CEILINGCEILING(Number)
More about CEILING Function

CRC32CRC32(String)
More about CRC32 Function

CRC32CCRC32C([Parameter], String)

FLOORFLOOR(Number)
More about FLOOR Function

SIGNSIGN(Number)
More about SIGN Function

ABSABS(Number)
More about ABS Function

ACOSACOS(Number)
More about ACOS Function

ASINASIN(Number)
More about ASIN Function

ATANATAN(Number [, Number2])
More about ATAN Function

ATAN2ATAN2(Number [, Number2])
More about ATAN2 Function

COSCOS(Number)
More about COS Function

COTCOT(Number)
More about COT Function

EXPEXP(Number)
More about EXP Function

LNLN(Number)
More about LN Function

LOGLOG([Base], Number)
More about LOG Function

LOG10LOG10(Number)
More about LOG10 Function

LOG2LOG2(Number)
More about LOG2 Function

MODMOD(Number, Divider)
More about MOD Function

POWPOW(Number, Exponent)
More about POW Function

POWERPOWER(Number, Exponent)
More about POWER Function

PIPI()
More about PI Function

RADIANSRADIANS(Number)
More about RADIANS Function

RANDRAND([Number])
More about RAND Function

ROUNDROUND(Number [, Decimals])
More about ROUND Function

SINSIN(Number)
More about SIN Function

SQRTSQRT(Number)
More about SQRT Function

TANTAN(Number)
More about TAN Function

TRUNCATETRUNCATE(Number, Decimals)
More about TRUNCATE Function

Numeric functionsString functionsRegular ExpressionsDate and Time functions
Comparison functionsEncryption & CompressionConversion functionsNULL functions
Aggregate functionsWindow functionsJSON functionsGeometric functions
Sequence functionsInformation functionsDynamic ColumnsMiscellaneous functions
More information about the DEGREES SQL function: mysql.com and mariadb.com and w3schools.com
Updated: 2023-09-24ImprintContactTerms & conditionsPrivacy & CookiesUpdatesSitemapFacebookLinkedinTwitterStatistics©2020-2024 Heino Cunze-Fischer