Contents > CFML Reference > ColdFusion Functions > Pi PreviousNext

Pi

Gets the mathematical constant p, accurate to 15 digits.

The number 3.14159265358979.

Mathematical functions

Pi()

ASin, Cos, Sin, Tan

<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.

Contents > CFML Reference > ColdFusion Functions > Pi PreviousNext

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa52.htm