For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pi

Returns the mathmatical constant Pi accurate to 15 digits

Method Signature

Pi()

Arguments

This function does not accept any arguments

Examples

pi to 11 digits

Run Example

pi();

Result: 3.141592653589793238462643383279503

Display all 15 digits with numberFormat

Run Example

numberFormat( pi(), "0.000000000000000" );

Result: 3.141592653589793

Boxlang only shows up to 15 digits of pi

After 15th digit CF outputs 0's

Run Example

Result: 3.1415926535897932385

Additional Examples

Last updated

Was this helpful?