Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clarify absolute difference explanation, Zoffix++
  • Loading branch information
MasterDuke17 committed Jun 18, 2016
1 parent 01c3684 commit f9ebaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/operators.pod
Expand Up @@ -1406,7 +1406,7 @@ Here is an excerpt of built-in smart-matching functionality:
The X<approximately-equal operator>. Calculates the relative difference between
the left-hand and right-hand sides and returns C<True> if the difference is
less than $*TOLERANCE (which defaults to 1e-15). However, if either side is zero
then it calculates the absolute difference between the non-zero side and $*TOLERANCE.
then it checks that the absolute difference between the sides is less than $*TOLERANCE.
Note that this operator is not arithmetically symetrical (doesn't do ± Δ):
say ($x + $*TOLERANCE) =~= $x; # True
Expand Down

0 comments on commit f9ebaba

Please sign in to comment.