toNumber method
Return the value of this Big as a primitive number.
Implementation
double toNumber() {
var n = double.parse(stringify(this, true, true));
if (strict == true && !eq(Big(n.toString()))) {
throw BigError(
code: BigErrorCode.impreciseConversion,
);
}
return n;
}