(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Num.round 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Num.round \- round to nearest integer8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Num.round\ :\ func(x:\ Num\ ->\ Num)13 .fi14 .SH DESCRIPTION15 Rounds a number to the nearest whole number integer.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 x Num The number to be rounded.26 .TE27 .SH RETURN28 The nearest integer value of `x`.30 .SH EXAMPLES31 .EX32 assert (2.3).round() == 233 assert (2.7).round() == 334 .EE35 .SH SEE ALSO36 .BR Tomo-Num (3)