Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expression.Expression.truncate#

Expression.truncate(n: Union[int, pyflink.table.expression.Expression[int]] = 0) → pyflink.table.expression.Expression[pyflink.table.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

New in version 1.12.0.

previous

pyflink.table.expression.Expression.hex

next

pyflink.table.expression.Expression.substring

Show Source

Created using Sphinx 4.5.0.