diff options
Diffstat (limited to 'man/man3/tomo-Num.format.3')
| -rw-r--r-- | man/man3/tomo-Num.format.3 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/man/man3/tomo-Num.format.3 b/man/man3/tomo-Num.format.3 new file mode 100644 index 00000000..eedd87a4 --- /dev/null +++ b/man/man3/tomo-Num.format.3 @@ -0,0 +1,35 @@ +'\" t +.\" Copyright (c) 2025 Bruce Hill +.\" All rights reserved. +.\" +.TH Num.format 3 2025-04-19T14:30:40.362831 "Tomo man-pages" +.SH NAME +Num.format \- Formats a number as a text with a specified precision. + +.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. + + +.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 |
