Click or drag to resize

RToD Function

X#
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.19
Syntax
 FUNCTION RToD(
	nExpression AS USUAL
) AS REAL8
Request Example View Source

Parameters

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
 
X#
1CLEAR
2? RTOD(ACOS(0))  // Displays 90.00
3STORE -1 to gnArcAngle
4? RTOD(ACOS(gnArcAngle))  // Displays 180.00
5? RTOD(ACOS(SQRT(2)/2)) // Displays 45.00
See Also