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

Sqrt – PB Docs 2022 – PowerBuilder Library

Sqrt – PB Docs 2022

Sqrt

PowerScript function

Description

Calculates the square root of a number.

Syntax

Argument

Description

n

The number for which you want the square root

Return value

Double.

Returns the square root of n. If n is null, Sqrt returns
null.

Usage

Sqrt

(n) is the same as n^.5. Taking the square root of a negative number
causes an execution error.

Examples

This statement returns 1.414213562373095:

This statement results in an error at execution time:

See also

Sqrt method for DataWindows in the section called “Sqrt” 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