JavaScript Editor js editor     Web development 



Main Page

Converts degrees to radians.

DTOR(nExpression)

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.

Return Value

Numeric

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

В Copy Code
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



JavaScript Editor js editor     Web development