DecimalExpression<T extends Decimal?> extension
Exact decimal arithmetic using the selected database's capabilities.
- on
-
- Expr<
T>
- Expr<
Methods
-
average(
{required int scale, DecimalRounding rounding = DecimalRounding.exact}) → Expr< Decimal?> -
Available on Expr<
Averages non-null inputs, rounding once at the requested result scale. Empty/all-null input returns null; the default rejects lost digits.T> , provided by the DecimalExpression extension -
constrained(
int precision, int scale) → Expr< T> -
Available on Expr<
Rounds and checks a decimal against the requested precision and scale.T> , provided by the DecimalExpression extension -
divide(
Decimal divisor, {required int scale, DecimalRounding rounding = DecimalRounding.exact}) → Expr< T> -
Available on Expr<
Divides in SQL to an explicit scale without a floating-point intermediate.T> , provided by the DecimalExpression extension -
divideExpression(
Expr< Decimal?> divisor, {required int scale, DecimalRounding rounding = DecimalRounding.exact}) → Expr<Decimal?> -
Available on Expr<
Divides two SQL expressions. A null operand produces null.T> , provided by the DecimalExpression extension -
minus(
Decimal n) → Expr< T> -
Available on Expr<
Subtracts an exactly encoded decimal value.T> , provided by the DecimalExpression extension -
minusExpression(
Expr< Decimal?> other) → Expr<Decimal?> -
Available on Expr<
Subtracts another decimal SQL expression.T> , provided by the DecimalExpression extension -
plus(
Decimal n) → Expr< T> -
Available on Expr<
Adds an exactly encoded decimal value.T> , provided by the DecimalExpression extension -
plusExpression(
Expr< Decimal?> other) → Expr<Decimal?> -
Available on Expr<
Adds another decimal SQL expression.T> , provided by the DecimalExpression extension -
rounded(
int scale, {DecimalRounding rounding = DecimalRounding.exact}) → Expr< T> -
Available on Expr<
Rounds in SQL; DecimalRounding.exact rejects any lost nonzero digits.T> , provided by the DecimalExpression extension -
sum(
{bool distinct = false}) → Expr< Decimal?> -
Available on Expr<
Sums decimal values exactly, returning null for an empty group.T> , provided by the DecimalExpression extension -
times(
Decimal n) → Expr< T> -
Available on Expr<
Multiplies by an exactly encoded decimal value.T> , provided by the DecimalExpression extension -
timesExpression(
Expr< Decimal?> other) → Expr<Decimal?> -
Available on Expr<
Multiplies by another decimal SQL expression.T> , provided by the DecimalExpression extension