DTOR( ) Function

Converts degrees to radians.

DTOR(nExpression)

Return Values

Numeric

Parameters

  • nExpression
    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.

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 Microsoft Visual FoxPro trigonometric functions: ACOS( ), ASIN( ), COS( ), SIN( ), TAN( ).

Use RTOD( ) to convert radians to degrees.

Example

CLEAR
? DTOR(0)  && Displays 0.00
? DTOR(45) && Displays 0.79
? DTOR(90) && Displays 1.57
? DTOR(180)  && Displays 3.14
? COS(DTOR(90))  && Displays 0.00

See Also

ACOS( ) | ASIN( ) | COS( ) | RTOD( ) | SIN( ) | TAN( )