THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL RADIANS() Function

❮ MySQL Functions

Example

Convert a degree value into radians:

SELECT RADIANS(180);
Try it Yourself »

Definition and Usage

The RADIANS() function converts a value in degrees to radians.

Note: See also the DEGREES() and PI() functions.

Syntax

RADIANS(number)

Parameter Values

Parameter Description
number Required. A numeric value

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

More Examples

Example

Convert a degree value into radians:

SELECT RADIANS(-45);
Try it Yourself »

❮ MySQL Functions