PI

BASin

PI

Function

PI gives the value of pi (π) for use in calculations. Pi is the ratio of the circumference of a circle to its diameter.

How to use PI

DRAW 255,0,-PI

PI returns a value of 3.1415927, so that the above command draws a large semicircle on the screen.

Format

  • PI

See also

Chapter 10.