bit/casting.fj¶
———- String:
Macros¶
bit¶
bit.str—used to initialize a string, like: bit.str "Hello, World!\n"bit.bin2ascii— ascii := the ascii representation of the value of bin.bit.dec2ascii— ascii := the ascii representation of the value of dec.bit.hex2ascii— ascii := the ascii representation of the value of hex (digits &capital-letters).bit.ascii2bin— if ascii is ‘0’/’1’, set bit to 0/1 (enderror=0). else, seterror=1.bit.ascii2dec— if ascii is ‘0’-‘9’, set dec to that decimal digit value (enderror=0). else, seterror=1.bit.ascii2hex— if ascii is ‘0’-‘9’/’a’-‘f’/’A’-‘F’, set hex to that hexadecimal digit value (enderror=0). else, seterror=1.