G
G
go2goj2019-12-09 23:17:01
Programming
go2goj, 2019-12-09 23:17:01

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

The numbers in which the information is stored, and the symbols of the numbers - can these things be called differently somehow?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ronald McDonald, 2019-12-09
@go2goj

The numbers in which the information is stored, and the symbols of the numbers - can these things be called differently somehow?

With Martian mind reading connected, I can assume that you mean "character code in ASCII" or any other encoding.
No, they don't have to match.
And the "number system" is something else altogether. "8", in this case, is just a symbol.

A
Arthur, 2019-12-09
@ar2rsoft

8 in decimal is 8

D
d-stream, 2019-12-10
@d-stream

56(10) is the serial number of the character "8" in the ASCII character table. In DKOI-8, the serial number of this character will be 38 (10), and in some table of the character generator of the RIN-609 display - 8 (10)

M
Mercury13, 2019-12-10
@Mercury13

I'll try to answer the question: why in ASCII the number "8" is 38 hex = 56 dec.
The fact is that in those days the only means of withdrawal was a teletype. And people just threw the concepts of “text string” and “exchange protocol” into one heap. This means that a rather large set of control characters was required. For programming convenience, control characters are best placed at the beginning of the table: in assembler this would be "if code >= 32, process as a character, otherwise make a table jump".
In one homemade encoding, the numbers were exactly 0 ... 9, a space -1, and a couple more control characters -2, -3. But this is new.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question