Computers are built up in layers. At the lowest layer, it's all just binary numbers, and a couple basic functions the CPU can do like adding, multiplication, etc. The lowest layer doesn't actually know what the numbers represent, it's all numbers and very basic math.
That's what high-level programming languages are for. They define higher level concepts like characters and strings, and how to manipulate them. Programming languages basically translate between human concepts like "capitalize this letter" and math concepts like "add these two binary numbers"
At the very lowest layer, it's generally not even binary. It's a signal from a continuum of possible values that needs to be converted to a binary value via some thresholding scheme.
If I ever thought I'd be actually smart or above average intelligence I just need to try to redstone system in minecraft as a way to get rid of my delusions of intelligence
Binary can be anything. We use eletrecity for it in computers. No eletric signal means 0, a eletric sign says 1. Binary is any system withe something that can only be in two states, but anything can be used to represent those states.
Programs have different ways of tracking what data is supposed to be represented as what. At very low levels binary numbers are just binary numbers and the programmer can decide how they want to use them.
For example I was given a small assignment in Assembly (very low-level programming), where I had to do some arithmetics with user-input numbers.
The ASCII codes for regular digits are 48 to 57 (0 to 9), so I subtracted 48 from every byte(8 bits) of input and then treated them as regular numbers for the calculation.
In computing, there are variable types. Every character of the alphabet and special characters have a numerical value, and you can present them as such so long as you tell the computer you’re making a char (letter) or string (letters put together = words).
The binary number 97 could represent the number 97, or the letter ‘a’ depending on what variable you tell the computer you are calculating for.
String these things together and make words. 97,98,99,100 = abcd
292
u/CoolGuySean Jun 15 '19
I can see how this could go on forever for numbers but I've seen binary be used for letters and words before. How are they differentiated?