totn MariaDB Functions

MariaDB: RADIANS Function

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

Description

The MariaDB RADIANS function a value in degrees to radians.

Syntax

The syntax for the RADIANS function in MariaDB is:

RADIANS( number )

Parameters or Arguments

number
An angle in degrees to convert to radians.

Note

  • See also the DEGREES and PI functions.
  • 180 degrees = π radians

Applies To

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

  • MariaDB 10

Example

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

For example:

SELECT RADIANS(30);
Result: 0.5235987755982988

SELECT RADIANS(180);
Result: 3.141592653589793

SELECT RADIANS(-10);
Result: -0.17453292519943295

SELECT RADIANS(-14.5);
Result: -0.2530727415391778