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

ACos – PB Docs 125 – PowerBuilder Library

ACos – PB Docs 125

ACos PowerScript function

Description

Calculates the arccosine of an angle.

Syntax

Argument

Description

n

The ratio of the lengths of two sides
of a triangle for which you want a corresponding angle (in radians).
The ratio must be a value between -1 and 1.

Return Values

Double. Returns the arccosine of n.

Examples

This statement returns 0:

This statement returns 3.141593 (rounded to six places):

This statement returns 1.000000 (rounded to six places):

This code in the Clicked event of a button catches
a runtime error that occurs when an arccosine is taken for a user-entered
value—passed in a variable—that is outside of
the permitted range:

See Also

  • Cos

  • ASin

  • ATan

  • ACos method for DataWindows in
    the DataWindow Reference or 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