Why the symbol 8 in decimal is 56, not 8?

Figures in which information is stored, and symbols of numbers – these things may be different as something called?
April 3rd 20 at 17:13
4 answers
April 3rd 20 at 17:15
Solution
Figures in which information is stored, and symbols of numbers – these things may be different as something called?

Connecting the Martian mind reading, I can assume that you mean "the character code in ASCII" or any other encoding.
No, they do not necessarily coincide.
A "number system" is another altogether. "8", in this case, just a symbol.
well then differently:
if the 8 symbol, then the corresponding 56 ...?
if the 8 digit/number, then the corresponding 56 ...? - Sanford.Kautzer commented on April 3rd 20 at 17:18
@Sanford.Kautzer, if the '8' character, then its corresponding 56 - code of this symbol. If the 8 is just a number, no 56 for him. - Cornell80 commented on April 3rd 20 at 17:21
@Cornell80my sound correctly: code the number 8 is 56 in decimal.
Called the symbol of the 8 digit. - Sanford.Kautzer commented on April 3rd 20 at 17:24
code symbol 8 in decimal terms 56
as
code symbol Q in the decimal basis, 81
of characters collected mathematical and text expressions to be displayed to the person.
img9.jpg - donato.Corke commented on April 3rd 20 at 17:27
@Sanford.Kautzer,
> in my opinion correct is: code the number 8 is 56 in decimal.
code number 8 code table (encoding) ASCII 56 in decimal notation.

> Called the symbol of the 8 digit.
call. - Mateo_Kie commented on April 3rd 20 at 17:30
@Mateo_Kie, and why, if we read byte (character 8) in the int variable number is written in ASCII (56), not just decimal (33)? It's in java so. - Sanford.Kautzer commented on April 3rd 20 at 17:33
@Sanford.Kautzer,
You have in mind some mess.
There is a table of the ASCII. This table stores the characters. There is no number 8, there is a symbol that appears on the screen as the number 8. This symbol is under the 56th number. Here you come into the store, bag in a box put and took the key. So the creators put the ASCII character '8' in the box, which number 56. When you read the symbol '8' to int, you can read its serial number in the ASCII table. Where does the number 33 and about a 10-TIC system speech - I do not understand. We have all 10-manual system - Hellen commented on April 3rd 20 at 17:36
@Hellen, computer, simply, stores information in bits (0, 1), team int a = System.in.read() we read the first 8 bits of the entered characters of information (e.g. the symbol '8'). Considered 00100001. And in the variable int a is the number 56.

1. The question arose, how? in the method read is the instruction to transfer the bits in ASCII? As always in java goes, if the place of storage of the integer variables to store set bits in the form of a transfer in ASCII?

2. The number 33 and here: I assumed, if all integer variables store the numbers in the decimal system, and we thought 8 bits (binary system) and they need somewhere to put, it is the conversion from binary system to decimal (I think that encoding is ASCII and there is nothing at all, the only important number system). Rounded out the converters (1, 2) – both are as follows: symbol 8 is 00100001 in binary, 33 in decimal code (number system - such words also say these converters). - Sanford.Kautzer commented on April 3rd 20 at 17:39
Show the code that you have found the top eight.
System.out.println(Integer.toBinaryString('8'));
Here's the code I was given 111000, that is 56.

Those links do not understand the function they don't even say what the encoding - Hellen commented on April 3rd 20 at 17:42
@Hellen,
int a = System.in.read();
System.out.println(a);
// Input: 8
// Output: 56
- Sanford.Kautzer commented on April 3rd 20 at 17:45
April 3rd 20 at 17:17
8 in decimal is 8
Yes Yes - Sanford.Kautzer commented on April 3rd 20 at 17:20
April 3rd 20 at 17:19
56(10) is the sequence number of the symbol "8" in ASCII table characters. In DKOI-8 serial number this symbol will be 38(10), and some table of the character generator display RIN-609 - 8(10)
April 3rd 20 at 17:21
I'll try to answer the question: why does the ASCII digit "8" is a hex 38 = 56 dec.

The fact that in those days the only output was a teletype. And people just threw in a heap of the concept of "text string" and "Protocol of exchange". And therefore required a large set of control characters. For ease of programming control characters it is best to be in the beginning of the table: in assembler it would be "if code >= 32, treating as a symbol, otherwise do jump on the table".

In one improvised encoding numbers that was just 0...9, a gap is -1, another pair of control characters and -2, -3. But this is a remake.

Find more questions by tags Programming