123456789101112131415161718192021222324252627282930313233343536 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Num.log2 3 2026-08-27 "Tomo man-pages"
.SH NAME
Num.log2 \- base-2 logarithm
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Num.log2\ :\ func(x:\ Num\ ->\ Num?)
.fi
.SH DESCRIPTION
The base-2 logarithm of a number.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
x Num The number whose logarithm is to be computed.
.TE
.SH RETURN
The base-2 log of `x`, or `none` if `x` is not positive.
.SH EXAMPLES
.EX
assert (8.).log2()! == 3
assert (1./4.).log2()! == -2
.EE
.SH SEE ALSO
.BR Tomo-Num (3)
|