# System Functions

RAD( ) | Convert Degrees to Radians

## Format

RAD(degrees[,ERR=stmtref])

Where:

degrees | Angle in degrees to be converted to radians.
stmtref | Program line number or statement label to which to transfer control.

## Returns

Angle in radians.

## Description

Converts angle in degrees to radians.

(The RAD( ) function was added in PxPlus 2020.)

## Example

aDeg=1
halfCircle=180
radDeg=rad(aDeg)
PI=rad(halfCircle)
print radDeg
0.02
print PI
3.14