Atomic docs

bit.tohex

bit.tohex(x: number): string

The value as eight lowercase hex digits, zero padded.

Example

lua
print(bit.tohex(255)) --> 000000ff
↑