toHex

fnstring toHex(const BigInt x) pure @safe

Converts a BigInt to its hexadecimal string representation with underscores.

This is a module-level free function for compatibility with std.bigint. Returns upper-case hexadecimal with underscores every 4 characters.

Parameters

xThe BigInt value to convert

Returns

Hexadecimal string representation with underscores