aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Num.format.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-27 16:49:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-27 16:49:38 -0400
commitbaf990e65c62f42e45fe25ac385db9536d3f1788 (patch)
tree7b89cecde1d6cd3b600b9295e0ad22a702cd1065 /man/man3/tomo-Num.format.3
parent1a8a8bc3e2ebd9c282db8131902f9bb5de8c03cb (diff)
Update stdlib to use `print` instead of `printf` in all cases. This
means bringing in fpconv to do float-to-string conversion and a few updates to integer and number methods for string formatting.
Diffstat (limited to 'man/man3/tomo-Num.format.3')
-rw-r--r--man/man3/tomo-Num.format.335
1 files changed, 0 insertions, 35 deletions
diff --git a/man/man3/tomo-Num.format.3 b/man/man3/tomo-Num.format.3
deleted file mode 100644
index 26474775..00000000
--- a/man/man3/tomo-Num.format.3
+++ /dev/null
@@ -1,35 +0,0 @@
-'\" t
-.\" Copyright (c) 2025 Bruce Hill
-.\" All rights reserved.
-.\"
-.TH Num.format 3 2025-04-21 "Tomo man-pages"
-.SH NAME
-Num.format \- convert a number to text
-.SH LIBRARY
-Tomo Standard Library
-.SH SYNOPSIS
-.nf
-.BI Num.format\ :\ func(n:\ Num,\ precision:\ Int\ =\ 0\ ->\ Text)
-.fi
-.SH DESCRIPTION
-Formats a number as a text with a specified precision.
-
-
-.SH ARGUMENTS
-
-.TS
-allbox;
-lb lb lbx lb
-l l l l.
-Name Type Description Default
-n Num The number to be formatted. -
-precision Int The number of decimal places. Default is `0`. 0
-.TE
-.SH RETURN
-A text representation of the number with the specified precision.
-
-.SH EXAMPLES
-.EX
->> (3.14159).format(precision=2)
-= "3.14"
-.EE