12345678910111213141516171819202122232425262728293031323334353637383940 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Float64.is_between 3 2026-08-27 "Tomo man-pages"
.SH NAME
Float64.is_between \- check if a number is in a range
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Float64.is_between\ :\ func(x:\ Float64,\ low:\ Float64,\ high:\ Float64\ ->\ Bool)
.fi
.SH DESCRIPTION
Determines if a number is between two numbers (inclusive).
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
x Float64 The integer to be checked.
low Float64 One end of the range to check (inclusive).
high Float64 The other end of the range to check (inclusive).
.TE
.SH RETURN
`yes` if `a <= x and x <= b` or `b <= x and x <= a`, otherwise `no`
.SH EXAMPLES
.EX
assert Float64(7.5).is_between(1, 10)
assert Float64(7.5).is_between(10, 1)
assert not Float64(7.5).is_between(100, 200)
assert Float64(7.5).is_between(1, 7.5)
.EE
.SH SEE ALSO
.BR Tomo-Float64 (3)
|