Encyclopedia

ones complement

ones complement

A system used in some computers to represent negative numbers. To negate a number, each bit of the number is inverted (zeros are replaced with ones and vice versa). This has the consequence that there are two reperesentations for zero, either all zeros or all ones.

... 000...00011 = +3 000...00010 = +2 000...00001 = +1 000...00000 = +0 111...11111 = -0 111...11110 = -1 111...11101 = -2 111...11100 = -3 ...

Naive logic for ones complement addition might easily conclude that -0 + 1 = +0.

The twos complement avoids this by using all ones to represent -1.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
Mentioned in
References in periodicals archive
The gold ones look perfect with all the metallic leather currently in favour, and the black ones complement all the beading and lace on party dresses.
By determining which plants bloom at the same time and which ones complement the colors on the trees, shrubs, and bulbs already growing in your garden, you can combine them in striking vignettes.
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.