Home >Common Problem >What is the representation of data in computers?

What is the representation of data in computers?

青灯夜游
青灯夜游Original
2020-04-24 15:57:2315030browse

What is the representation of data in computers? The following article will introduce it to you. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

What is the representation of data in computers?

#The representation of data in computers is binary.

Computer data representation refers to the data representation method that the processor hardware can recognize and store, transmit and process.

A data representation method that the processor hardware can recognize and store, transmit, and process. The data representation method of a processor is specified by the processor designer. Although the source and form of the data are different, all data input to this processor and processed by it must comply with the regulations. Software designers can also use this to specify various data types (such as imaginary numbers, vectors, etc.) and organize complex data structures (such as records, files, etc.).

Early mechanical and relay computers used basic components with 10 stable states to represent decimal data bits 0,1,2,...,9. The individual data bits of a piece of data are arranged in exponential order of 10, such as 386.45=3×10 8×10 6×10 4×10 5×10. However, it is difficult to require the basic electronic components of the processor to have 10 stable states, and the logic circuit of the decimal arithmetic unit is also relatively complex. Most components have two stable states, binary operations are relatively simple, and can save equipment. Binary and processor logic operations can be coordinated, and it is easy to use logic algebra to simplify processor logic design. Therefore, binary systems are widely used.

Fixed-point representation In binary, 0 and 1 are represented by the two stable states of the processor's electronic components, and 2 is the base of the number. Binary number

Character data representation uses a sequence of binary bits to form an encoding for input, processing and output, which is called character data. Character data includes various operational symbols, relational symbols, currency symbols, letters and numbers, etc. Commonly used in China is the national standard GB1988-80 "Seven-bit Coded Character Set for Information Processing and Exchange" promulgated in 1980 (see table), which represents 128 characters with 7 binary digits. It includes 32 control character sets, 94 graphic character sets, a spacer character and an erasure character.

For more related knowledge, please pay attention to PHP Chinese website! !

The above is the detailed content of What is the representation of data in computers?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is labview?Next article:What is labview?