Round – PB Docs 126

Round DataWindow expression 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
28.

Return Values

Decimal. If n is positive, Round returns x rounded
to the specified number of decimal places. If n is
negative, it returns x rounded to (- n +1)
places before the decimal point. Returns –1 if it fails.

Examples

This expression returns 9.62:

This expression returns 9.63:

This expression returns 9.600:

This expression returns -9.63:

This expression returns -10:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x