Skip to content

Commit f9ebaba

Browse files
committed
Clarify absolute difference explanation, Zoffix++
1 parent 01c3684 commit f9ebaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/operators.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ Here is an excerpt of built-in smart-matching functionality:
14061406
The X<approximately-equal operator>. Calculates the relative difference between
14071407
the left-hand and right-hand sides and returns C<True> if the difference is
14081408
less than $*TOLERANCE (which defaults to 1e-15). However, if either side is zero
1409-
then it calculates the absolute difference between the non-zero side and $*TOLERANCE.
1409+
then it checks that the absolute difference between the sides is less than $*TOLERANCE.
14101410
Note that this operator is not arithmetically symetrical (doesn't do ± Δ):
14111411
14121412
say ($x + $*TOLERANCE) =~= $x; # True

0 commit comments

Comments
 (0)