hex.print_dec_uintΒΆ
prints x[:n] as an unsigned DECIMAL number (without leading zeros).
SignatureΒΆ
def print_dec_uint n, x @ bit, end { ... }
Defined in hex/output.fj β lines 219β226 (view on GitHub).
ComplexityΒΆ
Time:
nd(28@+48) + n(5@-4) (for d number of decimal digits)Space:
n(56@+64)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def print_dec_uint n, x @ bit, end {
stl.hex2bit n, bit, x
bit.print_dec_uint 4*n, bit
;end
bit: bit.vec 4*n
end:
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.print_dec_intinhex/output.fj
β Previous: hex.print_int
Next: hex.print_dec_int β