Pi

Description

Gets the mathematical constant π, accurate to 15 digits.

Return value

The number 3.14159265358979.

Category

Mathematical functions

Syntax

Pi()

See also

ASin, Cos, Sin, Tan

Example

<body>
<h3>Pi Example</h3>

Returns the number
<cfoutput>
#NumberFormat(Pi(), '_._______________')#
</cfoutput>, the mathematical constant pi, accurate to 15 digits.

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

Version 6

Comments are no longer accepted for ColdFusion MX. 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/CFML_Reference/functions-pt251.htm