Skip to content

Commit 6a93543

Browse files
authored
Mention DWIMMY is-approx uses *absolute* $expected
... to figure out what sort of tolerance to use
1 parent 31fa161 commit 6a93543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/testing.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ are approximately equal to each other. The subroutine can be called in numerous
281281
ways that let you test using relative tolerance (C<$rel-tol>) or
282282
absolute tolerance (C<$abs-tol>) of different values.
283283
284-
If no tolerance is set, the function will base the tolerance on the value of
285-
C<$expected>: if it's smaller than C<1e-6>, use absolute tolerance of C<1e-5>;
284+
If no tolerance is set, the function will base the tolerance on the I<absolute>
285+
value of C<$expected>: if it's smaller than C<1e-6>, use absolute tolerance of C<1e-5>;
286286
if it's larger, use relative tolerance of C<1e-6>.
287287
288288
my Numeric ($value, $expected, $abs-tol, $rel-tol) = ...

0 commit comments

Comments
 (0)