Functions.FormatNumber(Column, Int32) Method

Definition

Formats the given numeric column to a format like '#,###,###.##', rounded to the given d decimal places with HALF_EVEN round mode, and returns the result as a string column.

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

Parameters

column
Column

Column to apply

d
Int32

Decimal places for rounding

Returns

Column object

Applies to