Navigation: Scripting Reference Manual > Functions & Subroutines > RadToDeg

 

RadToDeg

 

Contact Us: fredsupport@photonengr.com

 

Description

This function converts a value from radians to degrees.

 

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

 

Syntax

degAng = RadToDeg( radAng )

 

 

Parameters

radAng (Double)

Number in radians to be converted to degrees.

 

degAng As Double

Returned value of radAng in degrees.

 

 

Example

The following example converts a number from radians to degrees.

 

Dim degAng As Double, radAng As Double

radAng = PI()

degAng = RadToDeg( radAng )

Print "Value in degrees = " & degAng

 

See Also

PI Function

DegToRad Function

 

 

 

 

 

Copyright © Photon Engineering, LLC