blob: 19b7c71a9b859274f367fccd02b91977b946fbb4 (
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
36
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Int.octal 3 2025-04-19T14:48:15.710766 "Tomo man-pages"
.SH NAME
Int.octal \- Converts an integer to its octal representation.
.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.
.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
>> (64).octal(digits=4, prefix=yes)
= "0o0100"
.EE
|