aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Int.octal.3
blob: 3cd4f7f69025ac6802ba4a657323fa217460c281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Int.octal 3 2025-09-21 "Tomo man-pages"
.SH NAME
Int.octal \- convert to octal
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Int.octal\ :\ func(i:\ Int,\ digits:\ Int\ =\ 0,\ prefix:\ Bool\ =\ yes\ ->\ Text)
.fi
.SH DESCRIPTION
Converts an integer to its octal representation.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
i	Int	The integer to be converted. 	-
digits	Int	The minimum number of digits in the output string. 	0
prefix	Bool	Whether to include a "0o" prefix. 	yes
.TE
.SH RETURN
The octal string representation of the integer.

.SH EXAMPLES
.EX
assert (64).octal(digits=4, prefix=yes) == "0o0100"
.EE