Home > Article > Operation and Maintenance > What is the number of bytes occupied by a number entered in full-width mode in Windows?
The number of bytes that a number entered in full-width mode in Windows should occupy: 2. Full-width is a computer character, and each full-width character occupies two standard character (or half-width character) positions, while each half-width character only occupies one byte of space; therefore, full-width occupies two bytes.
#Full-width refers to a state where one character occupies two standard character positions. A full-width character is a computer character, and each full-width character occupies two standard character (or half-width character) positions.
Each ordinary character (or half-width character) only occupies one byte of space (one byte has 8 bits, a total of 256 encoding spaces), while Chinese, Japanese, Korean and other texts The language's font size is much larger than 256, so two bytes are used for storage. At the same time, it is also because of the writing habits of Chinese, Japanese, Korean and other languages. If full-width characters are used uniformly, the arrangement will look neat.
For neat arrangement, English and other Latin characters and punctuation are also provided in full-width format.
Usually English letters, numeric keys, and symbol keys are all half-width, and the half-width display internal code is one byte. Within the system, the above three characters are processed as basic codes, so users generally use half-width when entering commands and parameters.
Full-width occupies two bytes, half-width occupies one byte.
Half-width and full-width are mainly for punctuation marks. Full-width punctuation occupies two bytes, and half-width occupies one byte. Regardless of whether it is half-width or full-width, Chinese characters still occupy two bytes. bytes.
On computers that do not support Chinese characters and other languages, only half-width punctuation can be used (in fact, in this case, the concept of half-width and full-width does not exist at all).
,.?\'! ...these are half-width
,. ? ‘! …These are full-width
For most fonts, full-width looks larger than half-width, but of course this is not an essential difference.
Recommended tutorial: windows tutorial
The above is the detailed content of What is the number of bytes occupied by a number entered in full-width mode in Windows?. For more information, please follow other related articles on the PHP Chinese website!