totn MariaDB Functions

MariaDB: DEGREES Function

This MariaDB tutorial explains how to use the MariaDB DEGREES function with syntax and examples.

Description

The MariaDB DEGREES function converts a radian value into degrees.

Syntax

The syntax for the DEGREES function in MariaDB is:

DEGREES( number )

Parameters or Arguments

number
The value in radians that is to be converted to degrees.

Note

Applies To

The DEGREES function can be used in the following versions of MariaDB:

  • MariaDB 10

Example

Let's look at some MariaDB DEGREES function examples and explore how to use the DEGREES function in MariaDB.

For example:

SELECT DEGREES(1);
Result: 57.29577951308232

SELECT DEGREES(-3.5);
Result: -200.53522829578813

SELECT DEGREES(PI()*2);
Result: 360