Skip to main content

Mojo module

format_int

Provides the hex and bin functions.

These are Mojo built-ins, so you don't need to import them.

Functions

  • bin: Return the binary string representation an integral value.
  • hex: Returns the hex string representation of the given integer.
  • oct: Returns the octal string representation of the given integer.