1. Big-endian. Here, the bits of the low-value byte are stored in the byte of the target location with the lowest address. You can do this is perl using my $BEbin = pack 'n', 1263;Shouldn't this be the other way around?
2. Little-endian Here, the bits of the low-value byte are stored in the byte of the target location with the highest address You can do this is perl using my $LEbin = pack 'v', 1263;
Update: Edited for formatting
In reply to Re^2: Decmal to 16 bit binary number
by proceng
in thread Decmal to 16 bit binary number
by isha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |