dev
Download
36 lines 608 BGroffModified 2025-11-29 raw
123456789101112131415161718192021222324252627282930313233343536
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Num.rint 3 2025-11-29 "Tomo man-pages"
.SH NAME
Num.rint \- round to nearest integer
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Num.rint\ :\ func(x:\ Num\ ->\ Num)
.fi
.SH DESCRIPTION
Rounds a number to the nearest integer, with ties rounded to the nearest even integer.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
x	Num	The number to be rounded. 
.TE
.SH RETURN
The nearest integer value of `x`.

.SH EXAMPLES
.EX
assert (3.5).rint() == 4
assert (2.5).rint() == 2
.EE
.SH SEE ALSO
.BR Tomo-Num (3)