Returns the degree value of an angle measured in radians.

Syntax

RTOD(<expN>)

<expN>

A negative or positive number that is the size of the angle in radians.

Description

RTOD( ) converts the measurement of an angle from radians to degrees.

To convert radians to degrees, dBASE Plus

Multiplies the number of radians by 180

Divides the result by pi

Returns the quotient

An angle of pi radians is equivalent to 180 degrees.

Use RTOD( ) with the trigonometric functions ACOS( ), ASIN( ), ATAN( ), and ATN2( ) to convert the radian return values of these functions to degrees. For example, if the default number of decimal places is 2, ATAN(1) returns the value of the angle in radians, 0.79, while RTOD(ATAN(1)) returns the value of the angle in degrees, 45.00.

Use SET DECIMALS to set the number of decimal places RTOD( ) displays.