Home > Common Problem > A byte in computer memory can store

A byte in computer memory can store

(*-*)浩
Release: 2019-12-19 11:44:13
Original
30529 people have browsed it

A byte in computer memory can store

Byte (Byte) is a unit of measurement used by computer information technology to measure storage capacity. It is a string of binary digits that is processed as a unit and constitutes information. A small unit. The most commonly used byte is an eight-bit byte, that is, it contains an eight-bit binary number.

Byte is the unit of binary data. A byte is usually 8 bits long. However, some older computer architectures use different lengths. To avoid confusion, in most international literature the word byte is used instead of byte. (Recommended learning: phpstorm)

In most computer systems, a byte is an 8-bit long data unit. Most computers use a byte to represent a character or number. or other characters.

A byte can also represent a series of binary bits. In some computer systems, 4 bytes represent a word, which is the unit of data that the computer can efficiently process when executing instructions.

Some language descriptions require 2 bytes to represent a character, which is called a double-byte character set. Some processors are capable of handling double-byte or single-byte instructions.

Byte is usually abbreviated as "B", and bit is usually abbreviated as lowercase "b". The size of computer memory is usually expressed in bytes.

ASCII code: One English letter (regardless of upper and lower case) occupies one byte of space. A binary number sequence, used as a digital unit in the computer, is generally an 8-bit binary number. Converted to decimal, the minimum value is -128 and the maximum value is 127. For example, an ASCII code is a byte.

UTF-8 encoding: One English character is equal to one byte, and one Chinese character (including traditional Chinese) is equal to three bytes. Chinese punctuation occupies three bytes, English punctuation occupies one byte

Unicode encoding: one English is equal to two bytes, one Chinese (including traditional Chinese) is equal to two bytes. Chinese punctuation occupies two bytes, and English punctuation occupies two bytes

Byte data type (byte type) is stored in one byte (Byte), which can distinguish 256 numbers, and the value range :0 to 255. Byte is an unsigned type from 0-255, so it cannot represent negative numbers.

The above is the detailed content of A byte in computer memory can store. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template