共用方式為


RTOD( ) Function

Converts radians to degrees.

RTOD(nExpression)

Return Values

Numeric

Parameters

  • nExpression
    Specifies the numeric expression representing radians that RTOD( ) converts to degrees.

Remarks

RTOD( ) converts the value (in radians) of a numeric expression to an equivalent value in degrees.

RTOD( ) is useful for working with the Visual FoxPro trigonometric functions COS( ), SIN( ), and TAN( ).

Use DTOR( ) to convert degrees to radians.

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( ) | DTOR( ) | SIN( ) | TAN( )