Description

This function returns the value of PI as 3.14159265358979.

 

NOTE: A type mismatch error may occur in older scripts using a user-defined value for PI.

 

Syntax

myVal = PI( )

 

 

Parameters

myVal As Double

Value of PI returned as 3.14159265358979.

 

 

Example

The following example returns and prints the value of PI.

 

Dim myVal As Double

myVal = PI()

Print "PI = " & myVal

 

See Also

DegToRad Function

RadToDeg Function

 

 

 

 

 

Copyright © Photon Engineering, LLC