PowerCenter
- PowerCenter 10.5.7
- All Products
ROUND(numeric_value[,precision] )
Argument
| Required/
Optional
| Description
|
---|---|---|
numeric_value
| Required
| Numeric datatype. You can enter any valid transformation expression. Use operators to perform arithmetic before you round the values.
|
precision
| Optional
| Positive or negative integer. If you enter a positive
precision , the function rounds to this number of decimal places. For example, ROUND(12.99, 1) returns 13.0 and ROUND(15.44, 1) returns 15.4.
If you enter a negative
precision , the function rounds this number of digits to the left of the decimal point, returning an integer. For example, ROUND(12.99, -1) returns 10 and ROUND(15.99, -1) returns 20.
If you enter decimal
precision , the function rounds to the nearest integer before evaluating the expression. For example, ROUND(12.99, 0.8) returns 13.0 because the function rounds 0.8 to 1 and then evaluates the expression.
If you omit the
precision argument, the function rounds to the nearest integer, truncating the decimal portion of the number. For example, ROUND(12.99) returns 13.
|
ROUND( PRICE, 3 )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
ROUND( PRICE, -2 )
|
|
---|---|
|
|
|
|
|
|
|
|
ROUND( PRICE, 0.8 )
|
|
---|---|
|
|
|
|
|
|
ROUND( PRICE )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
7/3 * 3 = 7
ROUND(7/3 * 3) = 7