Round
PowerScript function
Description
Rounds a number to the specified number of decimal places.
Syntax
1 |
Round ( x, n ) |
Argument |
Description |
---|---|
x |
The number you want to round. |
n |
The number of decimal places to which you want to |
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:
1 |
Round(9.624, 2) |
This statement returns 9.63:
1 |
Round(9.625, 2) |
This statement returns 9.600:
1 |
Round(9.6, 3) |
This statement returns -9.63:
1 |
Round(-9.625, 2) |
This statement returns null:
1 |
Round(-9.625, -1) |
See also
Round method for DataWindows in the section called “Round” in DataWindow Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest