scale property

int scale
final

Returns this as minor units.

e.g.

Fixed.fromNum(1.234, scale: 3).minorUnits = 1234

The scale to which we store the amount.

A scale of 2 means we store the value to two decimal places.

Implementation

// late final BigInt minorUnits = (value * Decimal.ten.pow(scale)).toBigInt();

/// The scale to which we store the amount.
///
/// A scale of 2 means we store the value to
/// two decimal places.
final int scale;