ROUND()
single argument: integer type, DOUBLE PRECISION or DECFLOAT;
two arguments: numerical, matching first argument
ROUND (number [, scale])
| Parameter | Description |
|---|---|
number |
An expression of a numeric type |
scale |
An integer specifying the number of decimal places toward which rounding is to be performed, e.g.:
|
Rounds a number to the nearest integer.If the fractional part is exactly 0.5, rounding is upward for positive numbers and downward for negative numbers.With the optional scale argument, the number can be rounded to powers-of-ten multiples (tens, hundreds, tenths, hundredths, etc.).
|
Important
|
If you are used to the behaviour of the external function |