isDecimalPartZero property
bool
get
isDecimalPartZero
Returns true
if the decimal part is zero (an integer number).
Implementation
bool get isDecimalPartZero {
if (precision == 0) return true;
var n = _wholePartMultiplied(_scale);
var d = (_n - n).abs();
return d.isZero;
}