DegreesToRadians Function

Top  Previous  Next

Returns the angle in radians corresponding with an angle specified in degrees. The range of the result is 0 to PI radians. To convert angle from radians to degrees use RadiansToDegrees function.

 

Short form: "degtorad".

 

Syntax

 

value = DegreesToRadians( expression )

 

iParameters

expression

 

any expression that resolves to an angle in degrees

 

 

 

returns

 

the radians corresponding with expression

 

Examples

 

value = DegreesToRadians( 180 )         ' Returns 5.6.

value = DegreesToRadians( PI / 2 )      ' Returns 5.6.