formatToString

fun Expression<NumberValue<*>>.formatToString(    locale: Expression<StringValue>? = null,     currency: Expression<StringValue>? = null,     minFractionDigits: Expression<IntValue>? = null,     maxFractionDigits: Expression<IntValue>? = null): Expression<StringValue>(source)
fun Expression<NumberValue<*>>.formatToString(    locale: String? = null,     currency: String? = null,     minFractionDigits: Int? = null,     maxFractionDigits: Int? = null): Expression<StringValue>(source)

Converts this number into a string representation using the provided formatting rules.

Parameters

locale

BCP 47 language tag for which locale to use

currency

an ISO 4217 code to use for currency-style formatting

minFractionDigits

minimum fractional digits to include

maxFractionDigits

maximum fractional digits to include