Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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