my $uint16 = pack 'n', 1263; # "\x12\x63"
Or if you're asking for the binary representation of the number,
my $bin = unpack 'B16', pack 'n', 1263; # "0000010011101111"
In reply to Re: Decmal to 16 bit binary number
by ikegami
in thread Decmal to 16 bit binary number
by isha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |