Pi – PB Docs 2017

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 value

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 section called “Pi” in DataWindow Reference.


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