bit.print_dec_uint¶
prints x[:n] as an unsigned decimal number (without leading zeros).
The number 28/93 is the ratio of the number of decimal digits and the number of binary digits.
It’s bigger than log(2)/log(10) by 0.015%, which is just enough.
Signature¶
def print_dec_uint n, x @ start_printing, xor, end_xor, dst, src, print_buffer, print_buffer_flag, div10, zero_flag, ret_reg, end { ... }
Defined in bit/output.fj — lines 137–174 (view on GitHub).
Complexity¶
Time:
n^2(2@+4)Space:
n(14@+16)
See the complexity glossary for what @, w, dw, dbit, n mean.