RationalToleranceExtension extension

Extension on Rational to support isWithinTolerance

on
  • Rational

Methods

isWithinTolerance(Rational target, Rational tolerance) bool

Available on Rational, provided by the RationalToleranceExtension extension

Checks if this Rational is within a fixed tolerance of the target value.