Skip to content

PI

Syntax

PI

Description

PI is a math constant, roughly equivalent to 3.141592654..., and it is of type Float

Example

REM Prints PI Value
PRINT "PI = "; PI
Which will print a rounded value of 3.1415927

Remarks

  • This constant is 100% Sinclair BASIC Compatible.

See also