paint-brush
A Guide to Two's Complement: Calculating And Converting For Binary Numbersby@5amily
10,545 reads
10,545 reads

A Guide to Two's Complement: Calculating And Converting For Binary Numbers

by carpalsNovember 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A Guide to Two's Complement: Calculating And Converting For Binary Numbers. The lowest possible number that can be represented is -8 using a 4-bit binary string. The process of converting a binary string to a Two’s complement consists of inverting all of the bits in the number, then adding 1 to the least significant bit (rightmost) position. Inverting and adding one might sound like a very strange thing to do, but it is actually just a mathematical shortcut.
featured image - A Guide to Two's Complement: Calculating And Converting For Binary Numbers
carpals HackerNoon profile picture
carpals

carpals

@5amily

L O A D I N G
. . . comments & more!

About Author

carpals HackerNoon profile picture
carpals@5amily

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite