aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Num.nextafter.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Num.nextafter.3')
-rw-r--r--man/man3/tomo-Num.nextafter.335
1 files changed, 35 insertions, 0 deletions
diff --git a/man/man3/tomo-Num.nextafter.3 b/man/man3/tomo-Num.nextafter.3
new file mode 100644
index 00000000..c581e700
--- /dev/null
+++ b/man/man3/tomo-Num.nextafter.3
@@ -0,0 +1,35 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH Num.nextafter 3 2025-04-19T14:30:40.363421 "Tomo man-pages"
+.SH NAME
+Num.nextafter \- Computes the next representable value after a given number towards a specified direction.
+
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI "Num.nextafter : func(x: Num, y: Num -> Num)"
+.fi
+
+.SH DESCRIPTION
+Computes the next representable value after a given number towards a specified direction.
+
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+x Num The starting number. -
+y Num The direction towards which to find the next representable value. -
+.TE
+.SH RETURN
+The next representable value after `x` in the direction of `y`.
+
+.SH EXAMPLES
+.EX
+>> (1.0).nextafter(1.1)
+= 1.0000000000000002
+.EE