(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Num.nextafter 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Num.nextafter \- next floating point number8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Num.nextafter\ :\ func(x:\ Num,\ y:\ Num\ ->\ Num)13 .fi14 .SH DESCRIPTION15 Computes the next representable value after a given number towards a specified direction.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 x Num The starting number.26 y Num The direction towards which to find the next representable value.27 .TE28 .SH RETURN29 The next representable value after `x` in the direction of `y`.31 .SH EXAMPLES32 .EX33 assert (1.0).nextafter(1.1) == 1.000000000000000234 .EE35 .SH SEE ALSO36 .BR Tomo-Num (3)