DToR Function | |
Converts degrees to radians.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION DToR(
nExpression AS USUAL
) AS REAL8
public static double DToR(
Usual nExpression
)
Request Example
View SourceParameters
- nExpression
- Type: Usual
Specifies the numeric expression whose value you want to convert to radians. An angle expressed in a degree:minute:second format should be converted to its decimal equivalent.
Return Value
Type:
Double
Numeric
Remarks
DTOR( ) converts the value of a numeric expression given in degrees to an equivalent value in radians. DTOR( ) is useful for working with the X# trigonometric functions: ACOS( ), ASIN( ), COS( ), SIN( ), TAN( ).
Use RTOD( ) to convert radians to degrees.
Examples
1CLEAR
2? DTOR(0)
3? DTOR(45)
4? DTOR(90)
5? DTOR(180)
6? COS(DTOR(90))
See Also