You are viewing documentation about an older version (1.13.0). View latest version

snowflake.snowpark.functions.round¶

snowflake.snowpark.functions.round(e: Union[Column, str], scale: Union[Column, str, int, float] = 0) → Column[source]¶

Returns rounded values from the specified column.

Example:

>>> df = session.create_dataframe([[1.11], [2.22], [3.33]], schema=["a"])
>>> df.select(round(col("a")).alias("result")).show()
------------
|"RESULT"  |
------------
|1.0       |
|2.0       |
|3.0       |
------------
Copy