Users browsing this thread: 2 Guest(s)
Puggsoy's guide to bytes n stuff
#6
The shifting is just mimicking the "carry over" algorithm we do when the sum is over 10, such as:

Code:
012
+19 -> 2+9=11, it carries 1 to the tens digit and 1 to the units digit
---
031
However, in base 10 we have 10 symbols to use (0 to 9) and in base 2 we have only 2 symbols to use (0 and 1). In other words, every time the sum would equal to "2" in binary, you carry the digit over.
Spriter Gors】【Bandcamp】【Twitter】【YouTube】【Tumblr】【Portifolio
If you like my C+C, please rate me up. It helps me know I'm helping!
[Image: deT1vCJ.png]
Reply
Thanked by: puggsoy, eureka


Messages In This Thread
Puggsoy's guide to bytes n stuff - by puggsoy - 01-15-2017, 08:55 AM
RE: Puggsoy's guide to bytes n stuff - by Pingus! - 01-15-2017, 09:21 AM
RE: Puggsoy's guide to bytes n stuff - by iyenal - 01-15-2017, 09:44 AM
RE: Puggsoy's guide to bytes n stuff - by Gors - 01-18-2017, 07:52 AM
RE: Puggsoy's guide to bytes n stuff - by iyenal - 01-21-2017, 08:10 AM
RE: Puggsoy's guide to bytes n stuff - by puggsoy - 01-27-2017, 09:43 AM

Forum Jump: