radians()

Learn how to use the radians() function to convert angle values from degrees to radians.

Converts angle value in degrees into value in radians, using formula radians = (PI / 180 ) * angle_in_degrees

Syntax

radians(degrees)

Parameters

NameTypeRequiredDescription
degreesreal✔️The angle in degrees.

Returns

The corresponding angle in radians for an angle specified in degrees.

Example

print radians0 = radians(90), radians1 = radians(180), radians2 = radians(360) 

Output

radians0radians1radians2
1.57079632679493.141592653589796.28318530717959