GB Programming: Difference between revisions

Jump to navigation Jump to search
no edit summary
>Torchickens
(Minor grammar fixes)
>Torchickens
No edit summary
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!
 
To differentiate decimal numbers from binary numbers, binary numbers will be prependprepended with a % symbol. So, 10 is decimal, and %10 is binary. Got it? Okay.
 
Here is an example :
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu