JavaScript Editor js editor     Web development 



Main Page

Converts radians to its equivalent in degrees.

You can use RTOD(В ) when working with the Visual FoxPro trigonometric functions COS(В ), SIN(В ), and TAN(В ).

RTOD(nExpression)

Parameters

nExpression


Specifies a numeric expression representing a radian value.

Return Value

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.

Example

В Copy Code
CLEAR
? RTOD(ACOS(0))  && Displays 90.00
STORE -1 to gnArcAngle
? RTOD(ACOS(gnArcAngle))  && Displays 180.00
? RTOD(ACOS(SQRT(2)/2)) && Displays 45.00

See Also



JavaScript Editor js editor     Web development 
R7