From bildr

Jump to: navigation, search

In programming languages a number is signed if it can hold both positive and negative values. Floating point numbers (floats and doubles) are usually always signed while integers can be signed or unsigned.

Signed integers are generally implemented using Two's Complement form which means that the highest order bit can be used to determine if the number is positive (0) or negative (1). Using unsigned numbers doubles the number of positive values that are available to integers while removing any negative values.

8 bit math example:

00000111 = 0x07 => 7 signed and unsigned.
111111001 = 0xF9 => -7 signed, 249 unsigned.

This page is an Article on bildr. Articles are pages that define or explain a concept, method, or generic item.

NOTE: All information contained within this article is pure opinion. Although this article is intended to help people, it may contain faulty or misleading information. This article is not to be considered professional opinion or advice, and is in no way a replacement for reading all safety/instructional documentation. Always remember to protect yourself when handling/using hazardous materials, as well as test new techniques before using them on projects/work intended to be handed in or used.

bildr and its contributers take NO responsibility for the information contained within.