bit.ascii2dec¶
if ascii is '0'-'9', set dec to that decimal digit value (end error=0). else, set error=1.
ascii is bit[:8], dec in bit[:4], and error(output-param) is a bit.
Signature¶
def ascii2dec error, dec, ascii @ half_dec, return_error, check_decimal, copy_decimal_value, nine4, end { ... }
Defined in bit/casting.fj — lines 93–114 (view on GitHub).
Complexity¶
Time:
25@+56Space:
25@+56
See the complexity glossary for what @, w, dw, dbit, n mean.