Skip to main content

Pi

Returns the numerical value of pi (3.14159...).

Pi block

Description

The Pi block returns the numerical value of pi (3.14159...). This is a code block from the Math drawer.

Usage

Returns the numerical value of pi (3.14159...).

Syntax

This block has no inputs.

Example

This is a model that explores the relationship between turning degree and circle area. The model calculates the area of the circle drawn using the equation πr². The pi block is inserted into the equation as well as a world trait for the radius, which is calculated in The World tab, given the degrees turned input from the slider. Note that the area is in spaceland square units.

Pi example code