llm
Download
36 lines 625 BGroffModified 2026-08-27 raw
123456789101112131415161718192021222324252627282930313233343536
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Float64.trunc 3 2026-08-27 "Tomo man-pages"
.SH NAME
Float64.trunc \- truncate a number
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Float64.trunc\ :\ func(x:\ Float64\ ->\ Float64)
.fi
.SH DESCRIPTION
Truncates a number to the nearest integer towards zero.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
x	Float64	The number to be truncated. 
.TE
.SH RETURN
The integer part of `x` towards zero.

.SH EXAMPLES
.EX
assert Float64(3.7).trunc() == 3
assert Float64(-3.7).trunc() == -3
.EE
.SH SEE ALSO
.BR Tomo-Float64 (3)