Bitwise Functions (The GNU Awk User's Guide)
The bits2str() function turns a binary number into a string. Initializing mask to one creates a binary value where the rightmost bit is set to one. Using this mask, the function repeatedly checks the rightmost bit. ANDing the mask with the value indicates whether the rightmost bit is one or not. If so, a '1' is concatenated onto the front of ...
Get Price