# The decimal equivalent of ascii

### What is the ASCII code corresponding to the decimal number 0–9? How to display the decimal number 0–9 on the screen

The ascii code corresponding to the decimal number 0-9 is (48-57 in decimal), and it can be displayed on the screen with printf(), or cout

### How is the ASCII code for decimal numeric characters calculated? An example could be a number.

It’s not “calculated”, it’s coded! The code for ‘0’ is binary 00110000, i.e., decimal 48, the code for ‘1’ is binary 00110001, i.e., decimal 49; the code for ‘2’ is binary 00110010, i.e., decimal 50 …… and so on.

### The ASCII decimal number for the letter “A” is 65, what is the ASCII decimal number for the letter B

The ASCII decimal number for the letter B is 66.

ASCII code comparison table is attached

ASCII (AmericanStandardCodeforInformationInterchange) is a computer coding system based on the Latin alphabet. AmericanStandardCodeforInformationInterchange) is a computer coding system based on the Latin alphabet, primarily used to display modern English and other Western European languages. It is the most common single-byte coding system in use today, and is equivalent to the international standard ISO/IEC646.

### How to convert decimal 100 to ascii?

ascii is represented by a single character, while 100 is three characters.

We can divide it into three parts: “1”, “0”, “0”, and you can see the control character from the picture The ASCII of “1” is 49 and the ASCII of “0” is 48

So 100 can be expressed in ASCII as 494848

Here 49 and 48 represent decimal, which are converted to hexadecimal as 31H and 30H respectively