Round – PB Docs 2017

Round

PowerScript function

Description

Rounds a number to the specified number of decimal places.

Syntax

Argument

Description

x

The number you want to round.

n

The number of decimal places to which you want to
round x. Valid values are 0 through 30.

Return value

Decimal. Returns x rounded to the specified number of decimal places
if it succeeds, and null if it fails or if any argument’s value is
null.

Examples

This statement returns 9.62:

This statement returns 9.63:

This statement returns 9.600:

This statement returns -9.63:

This statement returns null:

See also

Ceiling

Init (obsolete)

Truncate

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