DB_Column.truncate
truncate
Group: Rounding
Aliases: int
Documentation
Truncate the floating-point values to an integer by dropping the fractional part. This is equivalent to "round-toward-zero".
Examples
Truncate a column of floating-point values.
import Standard.Examples
example_truncate = Examples.decimal_column.truncate
Remarks
NaN/Inf
If a NaN
or Inf
value is passed to truncate
, it immediately returns
the same value.