operator / method Null safety

double operator /(
  1. BigInt other

Double division operator.

Matching the similar operator on int, this operation first performs toDouble on both this big integer and other, then does double.operator/ on those values and returns the result.

Note: The initial toDouble conversion may lose precision.


print(BigInt.from(1) / BigInt.from(2)); // 0.5
print(BigInt.from(1.99999) / BigInt.from(2)); // 0.5


double operator /(BigInt other);