Functions.Round Method

Definition

Overloads

Round(Column, Int32)

Returns the value of the column rounded to scale decimal places with HALF_UP round mode.

Round(Column)

Returns the value of the column rounded to 0 decimal places with HALF_UP round mode.

Round(Column, Int32)

Returns the value of the column rounded to scale decimal places with HALF_UP round mode.

public static Microsoft.Spark.Sql.Column Round (Microsoft.Spark.Sql.Column column, int scale);
static member Round : Microsoft.Spark.Sql.Column * int -> Microsoft.Spark.Sql.Column
Public Shared Function Round (column As Column, scale As Integer) As Column

Parameters

column
Column

Column to apply

scale
Int32

Scale factor

Returns

Column object

Applies to

Round(Column)

Returns the value of the column rounded to 0 decimal places with HALF_UP round mode.

public static Microsoft.Spark.Sql.Column Round (Microsoft.Spark.Sql.Column column);
static member Round : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function Round (column As Column) As Column

Parameters

column
Column

Column to apply

Returns

Column object

Applies to