round method

Decimal round()

Returns the integer value closest to this num.

Rounds away from zero when there is no closest integer: (3.5).round() == 4 and (-3.5).round() == -4.

Implementation

Decimal round() => Decimal._fromRational(_rational.round());