Top "Signed" questions

In computing, signedness is a property of data types representing numbers in computer programs.

Little-Endian Signed Integer

I know the WAV file format uses signed integers for 16-bit samples. It also stores them in little-endian order, meaning …

endianness signed
C/C++ packing signed char into int

I have need to pack four signed bytes into 32-bit integral type. this is what I came up to: int32_…

c++ c byte signed packing
Signed vs. unsigned integers for lengths/counts

For representing a length or count variable, is it better to use signed or unsigned integers? It seems to me …

c# c++ unsigned signed
16 bit hex string to signed int in Java

I have a string in Java representing a signed 16-bit value in HEX. This string can by anything from "0000" to "…

java parsing signed hex
How to Decode/extract smime.p7m file contents of SMIME signed email using Ruby OpenSSL library

I have a signed email message as string. And I want to get string with whole unsigned message with attachments …

ruby openssl signed smime
Signedness of enum in C/C99/C++/C++x/GNU C/GNU C99

Is the enum type signed or unsigned? Does the signedness of enums differ between: C/C99/ANSI C/C++/C++…

c++ c enums c99 signed
How can I do 64-bit arithmetic in Perl?

I am a perl newbie, Can I simply use 64-bit arithmetic in Perl? For example $operand1 = 0xFFFFFFFFFFFF; # 48 bit value $operand2 = 0…

perl 64-bit signed
How do I convert hex string into signed integer?

I'm getting a hex string that needs to be converted to a signed 8-bit integer. Currently I'm converting using Int16/…

c# .net integer hex signed
Why is a negative int greater than unsigned int?

int main(void) { unsigned int y = 10; int x = – 4; if (x > y) Printf("x is greater"); else Printf("y is …

c int unsigned signed
What is zero-width bit field

Possible Duplicate: Practical Use of Zero-Length Bitfields Why some structures have zero-width bit fields, and why is it required? struct …

c struct bit-manipulation signed