RTOD( ) Function

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 Values

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

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

COS( ) Function | DTOR( ) Function | SIN( ) Function | TAN( ) Function