<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">README for Number::Tolerant

Number::Tolerant creates a number-like object whose value refers to a range of
possible values, each equally acceptable. It overloads comparison operations to
reflect this.

 use Number::Tolerant;

 my $range  = tolerance(10 =&gt; to =&gt; 12);
 my $random = 10 + rand(2);

 die "I shouldn't die" unless $random == $range;

 print "This line will always print.\n";

I use this module to simplify the comparison of measurement results to
specified tolerances.

 foreach ($specification-&gt;attributes) {
   reject $product unless $product-&gt;$_ == $specification-&gt;$_;
 }
</pre></body></html>