pyflink.table.expression.Expression.truncate#
- Expression.truncate(n: int | Expression[int] = 0) Expression[T][source]#
Returns a number of truncated to n decimal places. If n is 0, the result has no decimal point or fractional part. n can be negative to cause n digits left of the decimal point of the value to become zero. E.g. truncate(42.345, 2) to 42.34, 42.truncate(-1) to 40
Added in version 1.12.0.