From: Daniel Berger Date: 2007-06-20T03:19:28+09:00 Subject: Re: Unpacking signed shorts and integers with specified endianness On Jun 18, 4:35 pm, Phrogz wrote: > 1) I see "l" (lowercase L) which is 4 bytes treated as a signed > integer...but in 'native' endian order. Does String.unpack not provide > a way to unpack a 4-byte signed integer with a specified endianness? > > 2) I see "s" which is 2 bytes treated as a signed integer...but in > 'native' endian order. Does String.unpack not provide a way to unpack > a 2-byte signed integer with a specified endianness? See the 'N', 'n', 'V' and 'v' directives. There are equivalent directives for floats as well - 'E', 'e', 'G' and 'g'. Regards, Dan