truncate method

Decimal truncate()

Returns the integer value obtained by discarding any fractional digits from this num.

Implementation

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