12345678910111213141516171819202122232425262728293031323334353637 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Num.is_exact 3 2026-08-27 "Tomo man-pages"
.SH NAME
Num.is_exact \- whether digits capture the value
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Num.is_exact\ :\ func(n:\ Num,\ digits:\ Int\ =\ 15\ ->\ Bool)
.fi
.SH DESCRIPTION
Whether the requested number of fractional digits represents a number exactly, rather than rounding it.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx lb
l l l l.
Name Type Description Default
n Num The number to check. -
digits Int The number of fractional digits. 15
.TE
.SH RETURN
`yes` if `:digits(digits)` is the value itself.
.SH EXAMPLES
.EX
assert (0.25).is_exact(10)
assert not (1./3.).is_exact(10)
.EE
.SH SEE ALSO
.BR Tomo-Num (3)
|