TRUNC()
Truncate number
single argument: integer type, DOUBLE PRECISION or DECFLOAT;
two arguments: numerical, matching first argument
TRUNC (number [, scale])
| Parameter | Description |
|---|---|
number |
An expression of a numeric type |
scale |
An integer specifying the number of decimal places toward which truncating is to be performed, e.g.:
|
The single argument variant returns the integer part of a number.With the optional scale argument, the number can be truncated to powers-of-ten multiples (tens, hundreds, tenths, hundredths, etc.).
|
Note
|
|
|
Important
|
If you are used to the behaviour of the external function |