NumberFormatBuilder

class NumberFormatBuilder(input: Expression) : Expression.Builder

Builder for Number Format expression.

Parameters

input

the input as a number

Constructors

NumberFormatBuilder
Link copied to clipboard
fun NumberFormatBuilder(input: Expression)

Functions

build
Link copied to clipboard
open override fun build(): Expression

Build the number-format expression.

currency
Link copied to clipboard
fun currency(currency: Expression): Expression.NumberFormatBuilder
fun currency(block: Expression.ExpressionBuilder.() -> Unit): Expression.NumberFormatBuilder
fun currency(currency: String): Expression.NumberFormatBuilder

Number formatting option for specifying the currency to use, an ISO 4217 code.

locale
Link copied to clipboard
fun locale(locale: Expression): Expression.NumberFormatBuilder
fun locale(block: Expression.ExpressionBuilder.() -> Unit): Expression.NumberFormatBuilder
fun locale(locale: String): Expression.NumberFormatBuilder

Number formatting option for specifying the locale to use, as a BCP 47 language tag.

maxFractionDigits
Link copied to clipboard
fun maxFractionDigits(maxFractionDigits: Expression): Expression.NumberFormatBuilder
fun maxFractionDigits(maxFractionDigits: Int): Expression.NumberFormatBuilder

Number formatting options for specifying the minimum fraction digits to include.

minFractionDigits
Link copied to clipboard
fun minFractionDigits(minFractionDigits: Expression): Expression.NumberFormatBuilder
fun minFractionDigits(minFractionDigits: Int): Expression.NumberFormatBuilder

Number formatting options for specifying the minimum fraction digits to include.