RToD Function | |
Converts radians to its equivalent in degrees.
You can use RTOD( ) when working with the X# trigonometric functions COS( ), SIN( ), and TAN( ).
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION RToD(
nExpression AS USUAL
) AS REAL8
public static double RToD(
Usual nExpression
)
Request Example
View SourceParameters
- nExpression
- Type: Usual
Specifies a numeric expression representing a radian value.
Return Value
Type:
Double
Numeric data type. RTOD( ) returns the number of degrees converted from the number of radians.
Remarks
To convert degrees to radians, use the DTOR( ) function.
Examples
1CLEAR
2? RTOD(ACOS(0))
3STORE -1 to gnArcAngle
4? RTOD(ACOS(gnArcAngle))
5? RTOD(ACOS(SQRT(2)/2))
See Also