GB Programming: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
(Minor grammar fixes)
>Torchickens
No edit summary
Line 30: Line 30:
This paragraph is some trivia about why computers use binary instead of decimal. You can skip it if you want. So, why binary? Because we need computers to be efficient. So we need to store information using electricity. The easiest variable to manipulate is "Is power running?". The answer is either 0 (it doesn't) or 1 (it does). And there you got it! Why do computers count in binary? To keep them at reasonable prices!
This paragraph is some trivia about why computers use binary instead of decimal. You can skip it if you want. So, why binary? Because we need computers to be efficient. So we need to store information using electricity. The easiest variable to manipulate is "Is power running?". The answer is either 0 (it doesn't) or 1 (it does). And there you got it! Why do computers count in binary? To keep them at reasonable prices!


To differentiate decimal numbers from binary numbers, binary numbers will be prepend with a % symbol. So, 10 is decimal, and %10 is binary. Got it? Okay.
To differentiate decimal numbers from binary numbers, binary numbers will be prepended with a % symbol. So, 10 is decimal, and %10 is binary. Got it? Okay.


Here is an example :
Here is an example :