(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Int.octal 3 2026-01-19 "Tomo man-pages"6 .SH NAME7 Int.octal \- convert to octal8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Int.octal\ :\ func(i:\ Int,\ digits:\ Int\ =\ 0,\ prefix:\ Bool\ =\ yes\ ->\ Text)13 .fi14 .SH DESCRIPTION15 Converts an integer to its octal representation.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 i Int The integer to be converted. -26 digits Int The minimum number of digits in the output string. 027 prefix Bool Whether to include a "0o" prefix. yes28 .TE29 .SH RETURN30 The octal string representation of the integer.32 .SH EXAMPLES33 .EX34 assert 64.octal(digits=4, prefix=yes) == "0o0100"35 .EE36 .SH SEE ALSO37 .BR Tomo-Int (3)