QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _PI function returns as a _FLOAT value with an optional multiplier parameter.

Syntax

circumference = _PI[(multiplier)]

Parameter(s)

Description

Example(s)

Calculating the area of a circle using a SINGLE variable in this case.


radius = 5
circlearea = _PI(radius ^ 2)
PRINT circlearea


 78.53982

See Also