Perform approximate comparisons where the expected value is a Decimal.
| 509 | |
| 510 | |
| 511 | class ApproxDecimal(ApproxScalar): |
| 512 | """Perform approximate comparisons where the expected value is a Decimal.""" |
| 513 | |
| 514 | DEFAULT_ABSOLUTE_TOLERANCE = Decimal("1e-12") |
| 515 | DEFAULT_RELATIVE_TOLERANCE = Decimal("1e-6") |
| 516 | |
| 517 | |
| 518 | def approx(expected, rel=None, abs=None, nan_ok: bool = False) -> ApproxBase: |