constrained method

Expr<T> constrained(
  1. int precision,
  2. int scale
)

Rounds and checks a decimal against the requested precision and scale.

Implementation

Expr<T> constrained(int precision, int scale) {
  Decimal.validateDigits(precision, scale);
  return Expr.internal(DecimalCast(expressionNode, precision, scale), codec);
}