rounded method

Expr<T> rounded(
  1. int scale, {
  2. DecimalRounding rounding = DecimalRounding.exact,
})

Rounds in SQL; DecimalRounding.exact rejects any lost nonzero digits.

Implementation

Expr<T> rounded(
  int scale, {
  DecimalRounding rounding = DecimalRounding.exact,
}) {
  Decimal.validateScale(scale);
  return Expr.internal(
    DecimalRatio(expressionNode, null, scale, rounding),
    codec,
  );
}