Navigation: Scripting Reference Manual > Functions & Subroutines > DegToRad

 

DegToRad

 

Contact Us: fredsupport@photonengr.com

 

Description

This function converts a value from degrees to radians.

 

NOTE: A type mismatch error may occur in older scripts using a user-defined value for the conversion from degrees to radians.

 

 

Syntax

radAng = DegToRad( degAng )

 

 

Parameters

degAng (Double)

Number in degrees to be converted to radians.

 

radAng As Double

Returned value of degAng in radians.

 

 

Example

The following example converts a number from degrees to radians.

 

Dim degAng As Double, radAng As Double

degAng = 5

radAng = DegToRad( degAng )

Print "Value in radians = " & radAng

 

See Also

PI Function

RadToDeg Function

 

 

 

 

 

Copyright © Photon Engineering, LLC