isClose method

  1. @override
bool isClose(
  1. BigInt a,
  2. BigInt b,
  3. double epsilon
)
override

Returns true, if a and b are within range of epsilon.

Implementation

@override
bool isClose(BigInt a, BigInt b, double epsilon) =>
    (a - b).abs() < BigInt.from(epsilon.ceil());