(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Byte.hex 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 Byte.hex \- convert to hexidecimal8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Byte.hex\ :\ func(byte:\ Byte,\ uppercase:\ Bool\ =\ yes,\ prefix:\ Bool\ =\ no\ ->\ Text)13 .fi14 .SH DESCRIPTION15 Convert a byte to a hexidecimal text representation.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 byte Byte The byte to convert to hex. -26 uppercase Bool Whether or not to use uppercase hexidecimal letters. yes27 prefix Bool Whether or not to prepend a \fB0x\fR prefix. no28 .TE29 .SH RETURN30 The byte as a hexidecimal text.32 .SH EXAMPLES33 .EX34 assert Byte(18).hex(prefix=yes) == "0x12"35 .EE36 .SH SEE ALSO37 .BR Tomo-Byte (3)