in reply to Decmal to 16 bit binary number
converts the integer to a 16-bit binary representation. If you actually do want to reverse the bits in each byte, split or substr and reverse should provide ways to rearrange their order.$ perl -e 'printf "%016b\n", 1263' 0000010011101111
|
|---|