PI

Function

PI is used to return the value of PI

Syntax

A = PI

Example

10 INPUT "ANGLE IN DEGREES",A
20 LET B = A*PI/180
30 PRINT A;"DEGREES ARE";B;"RADIANS"

This program will convert an angle in degrees to an angle in radians.

Remarks

PI is returned with 6 digit precision i.e.

PI = 3.14159