DTOR( )
Returns the radian value of an angle whose measurement is given in degrees.
Syntax
DTOR(<expN>)
<expN>
A negative or positive number that is the size of the angle in degrees.
Description
DTOR( ) converts the measurement of an angle from degrees to radians. To convert degrees to radians, dBASE Plus;
Multiplies the number of degrees by pi
Divides the result by 180
Returns the quotient
A 180-degree angle is equivalent to pi radians.
Use DTOR( ) in the trigonometric functions SIN( ), COS( ), and TAN( ) because these functions require the angle value in radians. For example, to find the sine of a 45-degree angle, use SIN(DTOR(45)), which returns .71 if the default number of decimal places is 2.
Use SET DECIMALS to set the number of decimal places DTOR( ) displays.