bit.print_as_digit (arity 1)¶
prints the ascii character ‘0’/’1’, based on x’s value.
x is a bit.
Signature¶
def print_as_digit x { ... }
Defined in bit/output.fj — lines 51–54 (view on GitHub).
Complexity¶
Time:
@+9Space:
@+9
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def print_as_digit x {
.output x
rep(7, i) stl.output_bit ('0'>>(i+1)) & 1
}
Depends on¶
← Previous: bit._.print_str_one_char
Next: bit.print_as_digit/2 →