deg2rad()

Converts an angle from degrees to radians.

Syntax

deg2rad(angle)

Parameters

Parameter Type Description
angle Number Angle in degrees to convert.

Return Value

Examples

deg2rad(180);  // returns pi()
deg2rad(90);   // returns pi()/2
deg2rad(1);    // returns approximately 0.0174533

See also

pi
sin
asin
cos
acos
tan
atan
atan2
rad2deg
deg2rad