• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Pi

Synopsis

                  Pi( )

Returns the value of Pi accurate to 15 decimal places (3.14159265358979). Note that without applying a NumberFormat( ) mask, Pi( ) will only actually display 11 decimal places. 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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint