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?

6 Answers

Relevance
  • Robert
    Lv 5
    6 days 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.

  • 2 weeks 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 7
    2 weeks 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...

  • keerok
    Lv 7
    2 weeks 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. 

  • How do you think about the answers? You can sign in to vote the answer.
  • Bill-M
    Lv 7
    2 weeks 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. £

  • EddieJ
    Lv 7
    2 weeks 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.

Still have questions? Get your answers by asking now.