back to Command Reference
[All Models]
Specifies the angle unit.
ANGLE angle specification
└───────┬────────┘
Numeric expression
ANGLE 0
angle specification: Numeric expression truncated to an integer in the range 0 <= angle specification < 3
| Angle Unit | DEG | RAD | GRAD |
|---|---|---|---|
| 1 DEG = | 1 | pi/180 | 100/90 |
| 1 RAD = | 180/pi | 1 | 200/pi |
| 1 GRAD = | 90/100 | pi/200 | 1 |
ANGLE 0 is set whenever ALL RESET is executed.10 ANGLE 0 'DEGREES
20 PRINT SIN 30;
30 ANGLE 1 'RADIAN
40 PRINT SIN (PI/6);
50 ANGLE 2 'GRAD
60 PRINT SIN(100/3)
Calculates and displays sin 30 degrees in the degree mode, sin pi/6 in the radian mode, and sin 100/30 in the grad mode.