Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How do I print UInt8 in hex format? - Modular
M
Modular
•
3y ago
ghos1s
How do I print UInt8 in hex format?
Was curious if it was possible to print bytes in hexadecimal format
, I want to see
'0xFF
' format in the console
.
A python equivalent would be
print('{:02x}'.format(x))
print('{:02x}'.format(x))
, is this possible in mojo right now
?
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Printf - print format
M
Modular / questions
3y ago
Casting between DTypePointer[DType.uint8] and Pointer[UInt8] ?
M
Modular / questions
3y ago
convert UInt8 to UInt16
M
Modular / questions
3y ago
string chars to uint8
M
Modular / questions
3y ago