hex.print_intΒΆ

print the signed x[:n], without leading zeros.

x_prefix (constant): print with the β€œ0x” prefix.
use_uppercase (constant): if true, print in uppercase (else lowercase).

SignatureΒΆ

def print_int n, x, x_prefix, use_uppercase @ do_neg, print, neg, end { ... }

Defined in hex/output.fj β€” lines 198–213 (view on GitHub).

ComplexityΒΆ

  • Time: n(2@+10)

  • Space: n(4.5@+71)

See the complexity glossary for what @, w, dw, dbit, n mean.

SourceΒΆ

Depends onΒΆ


← Previous: hex.print_uint.print_digit Next: hex.print_dec_uint β†’