ASCIICodes are numeric representation of character such as a & b because ram can't read them out but why they are assigned to numbers like 1?
- Mike WLv 72 months ago
ASCII is how the computer tells terminals, printers, and other input/output devices what to display. In addition to having codes for letters, and numbers, it has codes for special characters and punctuation. It also has non printing codes for things like new line, carriage return, space, etc. When you're using the ascii code for the number 1, for example, you're just telling a device to display the number 1, it's not representative of the value 1.
- RobertLv 54 months ago
Because there is a difference between the character "1" and the number 1. ASCII only has 255 possible values. And that is not enough to do all math with. So they represent values as a string of numeric characters just like they represent words with a string of letter characters. But behind the scenes, all math takes place in binary. So all decimal values are converted to their binary equivalent before any math is done.
- The_Doc_ManLv 74 months ago
Your question suggests that you don't understand something quite fundamental.
There are two types of data in computer memory. Display data and functional data. Number 1 isn't assigned an ASCII code - but character '1' has a code, as does every other single digit. When you see the list of ASCII characters, ALL of them are for display, not functional or computational usage (unless the function IS as a text string for display.)
Technically, there is a third type of data in computer memory - instructions - because instructions are nothing more than byte sequences that were output by a compiler. It's all about not only what it looks like, but how it is used.
And RAM is not where things are read out. It is where they are stored and fetched. Computers actually don't always translate RAM contents anyway. Sometimes that is done locally by the attached devices like displays and printers.
- ∅Lv 74 months ago
computers themselves only read 1's and 0's (bits), which are translated into larger numbers (bytes, which are 8 bits each).
these larger numbers are used to represent the various letters, since there are so many different languages around the world with so many different alphabets.
you would probably be shocked to hear that the total list of UTF-8 characters numbers in the tens of thousands...
- How do you think about the answers? You can sign in to vote the answer.
- keerokLv 74 months ago
RAM has nothing to do with it. Codes are there (for letters, numbers and symbols) because computers and humans don't speak the same way.
- Bill-MLv 74 months ago
1 is a Human Decimal Number. Computers don't do Decimal, they do Binary or Multiples of Binary like Hexadecimal. ASCII is no longer used and has been replaced by UNICODE.
All Characters have a UNICODE assigned to them. There are over 143 Thousand UNICODE Characters. The Hexadecimal (Unicode) for the Decimal Number 1 is 0031.
The British Pound sign is 00A3. £
- EddieJLv 74 months ago
Uno, dos, tres. These are Spanish words. In English, they're one, two, three.
"1" is NOT a number. It is a numeral. A numeral is a type of character that represents a number. Other characters represent alphabetic characters. There is one character for a lower-case "a" and another character for an upper-case "A".
A computer program will consider "APPLE" and "apple" to be different. They are different ASCII characters.
You NEVER see a number 1 in RAM. It needs to be converted to a readable numeral. ASCII contains 10 so called Arabic numerals, "0" through "9".
But, that's only part of the story. Before you see them on the screen, a specific font (a typeface, size, and weight) has to be selected to represent the ASCII character.
Numbers themselves are abstract concepts. How many sevens can you hold in your hand? In RAM, there can be a binary number 1 represented by bits that are on and off. But you can also have the ASCII representation which is a different set of bits. And then, for you to see it, pixels will be set, and, if the screen is able to display different colors, there may be 3-bytes to represent 256 levels of red, green and blue for each pixel.