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

Int – PB Docs 150 – PowerBuilder Library

Int – PB Docs 150

Int PowerScript function

Description

Determines the largest whole number less than or equal to
a number.

Syntax

Argument

Description

n

The number for which you want the largest
whole number that is less than or equal to it

Return Values

Integer. Returns the largest whole number
less than or equal to n. If n is
too small or too large to be represented as an integer, Int returns
0. If n is null, Int returns null.

Usage

When the result for Int would be smaller
than -32768 or larger than 32767, Int returns 0 because the result
cannot be represented as an integer.

Examples

These statements return 3.0:

The following statements return -4.0:

These statements remove the decimal portion of the
variable and store the resulting integer in li_nbr:

See Also


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