withScale method

  1. @override
Decimal withScale(
  1. int scale,
  2. RoundingMode mode
)
override

Convert to Decimal with specified scale and rounding mode

Implementation

@override
Decimal withScale(int scale, RoundingMode mode) {
  return toDouble().toDecimal(scale: scale, mode: mode);
}