scale property

int get scale

The scale of this Decimal.

The scale is the number of digits after the decimal point.

Decimal.parse('1.5').scale; // => 1
Decimal.parse('1').scale; // => 0

Implementation

int get scale => _scale <= 0 ? 0 : max(_rescaled._scale, 0);