toBigInt method
The BigInt obtained by discarding any fractional digits from this
.
Implementation
BigInt toBigInt() => switch (this) {
var d when d._scale > 0 => d._value ~/ _i10.pow(d._scale),
var d when d._scale < 0 => d._value * _i10.pow(-d._scale),
var d => d._value,
};