MySQL RADIANS() Function

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 »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.