Skip to content
EntityQ7512911· pop 6· linked from 153 articles

Signedness

Sign in to save

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).

~3 min read

Article

3 sections
Contents
  • In programming languages
  • See also
  • External links

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.

Available in 6 languages

via Wikidata sitelinks · CC0

Connections

Categories