Name
Pi
Synopsis
Pi( )
Returns the value of π accurate to 15 digits (3.14159265358979).
The following example uses Pi( )
to calculate the
circumference of a circle with a radius of 12 inches:
<CFSET r=12> <CFSET Circumference = 2*Pi( )*r> <CFOUTPUT> The circumference of a circle with a radius of 12 inches is #Circumference# inches. </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.