Whatever message this page gives is out now! Go check it out!

Pi

Last update:
May 18, 2026

Description

Gets the mathematical constant p, accurate to 15 digits.

Returns

The number 3.14159265358979.

Category

Function syntax

Pi()
See also
ASinCosSinTan

Example

<h3>Pi Example</h3> 
<!--- By default, ColdFusion displays only 11 significant digits. 
Use NumberFormat to display all 15. ---> 
The Pi function Returns the number 
<cfoutput> 
#NumberFormat(Pi(), "_.




")#, 
</cfoutput> the mathematical constant pi, accurate to 15 digits.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page