Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Pi – PB Docs 126 – PowerBuilder Library

Pi – PB Docs 126

Pi PowerScript function

Description

Multiplies pi by a specified number.

Syntax

Argument

Description

n

The number you want to multiply by pi
(3.14159265358979323…)

Return Values

Double. Returns the result of multiplying n by
pi if it succeeds and -1 if an error occurs. If n is null, Pi returns null.

Usage

Use Pi to convert angles to and from radians.

Examples

This statement returns pi:

Both these statements return the area of a circle
with the radius id_Rad, an instance
variable of type double:

The following statements compute the cosine of a
45-degree angle:

See Also

  • Cos

  • Sin

  • Tan

  • Pi method for DataWindows
    in the DataWindow Reference or the online Help


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x