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 degree value into radians.

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

Syntax

RADIANS(number)

Parameter Values

Parameter Description
number Required. A number in degrees

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Convert a degree value into radians:

SELECT RADIANS(-45);
Try it Yourself »

❮ MySQL Functions