TOPICS
Search

Ten's Complement


The ten's complement of a nonzero integer n having at most d decimal digits is 10^d-n. More generally, the radix complement of n in base b is b^d-n. Complement arithmetic permits subtraction to be performed by addition followed by discarding a final carry.


See also

Base, Complement, Radix

Explore with Wolfram|Alpha

References

Knuth, D. E. The Art of Computer Programming, Vol. 2: Seminumerical Algorithms, 3rd ed. Reading, MA: Addison-Wesley, 1998.

Cite this as:

Weisstein, Eric W. "Ten's Complement." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/TensComplement.html

Subject classifications