AllExperts > Encyclopedia 
Search      
Find out about volunteering to AllExperts

Signedness: Encyclopedia BETA


Free Encyclopedia
 Home · Index · Browse A-Z  · Questions and Answers ·
Encyclopedia

Browse A-Z
ABCDEFGHIJKLMNOPQRSTUVWXYZNum


License
Disclaimer

 
 
 
 
Free Online Courses
12 Weeks to Weight Loss
Take Charge of Stress
Learn How to Bake
Budgeting 101
Deeper Faith
DIY Fashion Makeover

       MORE E-COURSES
 
   

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  Misc

Signedness

In computing, signedness is a property of variables 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 positive numbers.

Although this distinction is often made in computer s, which require it to do arithmetic correctly, it is concealed by many programming languages. Generally, only languages which stay close to hardware's constraints (so-called "low-level" languages) require programmers to make the distinction. These include assembly language, C and C++.

While signed numbers can represent negative numbers they lose a range of larger numbers which can only be represented with unsigned numbers of the same size (in bits).This is because in signed variables, one bit is used to indicate signedness, dividing the number of positive values that can be represented by two. Unsigned variables can dedicate all their bits to the positive number range.

See also

*Sign bit
*Two's complement
*Signed number representations



Email this page
About Us | Advertise on This Site | User Agreement | Privacy Policy | Kids' Privacy Policy | Help
About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.
This is the "GNU Free Documentation License" reference article from the English Wikipedia. All text is available under the terms of the GNU Free Documentation License. See also our Disclaimer.