dev
Download
37 lines 773 BGroffModified 2026-03-09 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Byte.hex 3 2026-03-08 "Tomo man-pages"
.SH NAME
Byte.hex \- convert to hexidecimal
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Byte.hex\ :\ func(byte:\ Byte,\ uppercase:\ Bool\ =\ yes,\ prefix:\ Bool\ =\ no\ ->\ Text)
.fi
.SH DESCRIPTION
Convert a byte to a hexidecimal text representation.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
byte	Byte	The byte to convert to hex. 	-
uppercase	Bool	Whether or not to use uppercase hexidecimal letters. 	yes
prefix	Bool	Whether or not to prepend a \fB0x\fR prefix. 	no
.TE
.SH RETURN
The byte as a hexidecimal text.

.SH EXAMPLES
.EX
assert Byte(18).hex(prefix=yes) == "0x12"
.EE
.SH SEE ALSO
.BR Tomo-Byte (3)