diff options
Diffstat (limited to 'man/man3/tomo-Num.is_between.3')
| -rw-r--r-- | man/man3/tomo-Num.is_between.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/man/man3/tomo-Num.is_between.3 b/man/man3/tomo-Num.is_between.3 index 4276c8e3..ea78d895 100644 --- a/man/man3/tomo-Num.is_between.3 +++ b/man/man3/tomo-Num.is_between.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.is_between 3 2025-11-29 "Tomo man-pages" +.TH Num.is_between 3 2025-12-31 "Tomo man-pages" .SH NAME Num.is_between \- check if a number is in a range .SH LIBRARY @@ -23,15 +23,16 @@ lb lb lbx l l l. Name Type Description x Num The integer to be checked. -low Num The lower bound to check (inclusive). -high Num The upper bound to check (inclusive). +low Num One end of the range to check (inclusive). +high Num The other end of the range to check (inclusive). .TE .SH RETURN -`yes` if `low <= x and x <= high`, otherwise `no` +`yes` if `a <= x and x <= b` or `b <= x and x <= a`, otherwise `no` .SH EXAMPLES .EX assert (7.5).is_between(1, 10) == yes +assert (7.5).is_between(10, 1) == yes assert (7.5).is_between(100, 200) == no assert (7.5).is_between(1, 7.5) == yes .EE |
