PI Function | |
Returns the numeric constant pi.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax Remarks
The numeric constant pi (3.141592) is the ratio of the circumference of a circle to its diameter.
The number of decimal places displayed in the value returned by PI( ) is determined by SET DECIMALS.
Examples
1CLEAR
2? PI( )
3STORE 2.30 TO gnRadius
4STORE PI( ) * gnRadius^2 TO gnArea
5? gnArea
See Also