signedness
In computing, signedness is a property of data types representing numbers in computer programs. A numeric variable is signed if it can represent both positive and negative numbers, and unsigned if it can only represent non-negative numbers (zero or positive numbers). As signed numbers can represent negative numbers, they lose a range of positive numbers that can only be represented with unsigned numbers of the same size (in bits) because roughly half the possible values are non-positive values, whereas the respective unsigned type can dedicate all the possible values to the positive number range. For example, a two's complement signed 16-bit integer can hold the values −32768 to 32767 inclusively, while an unsigned 16 bit integer can hold the values 0 to 65535. For this sign representation method, the leftmost bit (most significant bit) denotes whether the value is negative (0 for positive or zero, 1 for negative).
In computing, signedness is a property of data types representing numbers in computer programs. A numeric variable is signed if it can represent both positive and negative numbers, and unsigned if it can only represent non-negative numbers (zero or positive numbers). As signed numbers can represent negative numbers, they lose a range of positive numbers that can only be represented with unsigned numbers of the same size (in bits) because roughly half the possible values are non-positive values, whereas the respective unsigned type can dedicate all the possible values to the positive number range. For example, a two's complement signed 16-bit integer can hold the values −32768 to 32767 inclusively, while an unsigned 16 bit integer can hold the values 0 to 65535. For this sign representation method, the leftmost bit (most significant bit) denotes whether the value is negative (0 for positive or zero, 1 for negative). ==See also== Sign bit Signed number representations Sign (mathematics) Binary Angular Measurement System, an example of semantics where signedness does not matter
References
No reference rows published for this article.
Cite this article
MLA
"signedness." encyclopegia.org, 2025, https://encyclopegia.org/wiki/signedness. Accessed 24 November 2026.
Chicago
"signedness." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/signedness.
APA
encyclopegia.org. (2025). signedness. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/signedness
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON