The fastest way to calculate the file size, output amp; apos; B amp; apos;, amp; apos; KB amp; apos ;, amp; apos; MB amp;
So far, it may be the fastest calculation method.Is it faster?
Date_default_timezone_set ('utc ');
Function format_bytes ($ size)
{
$ Arr = array ('B', 'KB', '
The smallest basic unit is byte should not have many people do not know, the following first in order to give all units
Byte, KB, MB, GB, TB, PB, EB, ZB, YB, DB, NB
I only know the top five, and most people know it, according to the rate of 1024 calculation
1tb=2 's 40-Time Square byte=1099511627776 Byte
1pb=2 's 50-time Square Byte=1125899906842624byte
1eb=2 60-Time Square byte= 1152921504606846976 Byte
1z
Reprint Source: http://blog.csdn.net/liulin_good/article/details/7212355
What are the storage units of a computer?Computer storage units are generally used bit, Byte, KB, MB, GB, TB, PB, EB, ZB, BB to express,We often call a byte short as B, the KB abbreviation K. What a few k, what a few B.
Second, what is their conversion relationship? 1, the smallest unit
Recently solved a problem-reducing memory usage. However, this method can only be used in WINXP and Win2k, without displaying that the main form is always running.ProgramBest. In the past, the program used 11 MB of memory. I used the dynamic window creation method to reduce the size by less than 100 kb. After applying this method, the memory usage was only 496 kb
equals 8 bits (1byte=8bit). Eight-bit binary number minimum is 00000000, the maximum is 11111111; usually 1 bytes can be stored in an ASCII code, 2 bytes can hold a Chinese character GB code.3, the wordWhen a computer is processing data, the length of time it accesses, processes, and transmits is called word. A word is usually made up of one or more bytes (usually the integer bits of bytes). For example, the word 286 microcomputer consists of 2 bytes, its word length is 16;486 microcomputer's w
BYTE (byte) is B: A byte is made up of 8-bit binary digits (1 byte = 8 bit). Byte is the most common base unit in the information store.
An English letter (case-insensitive) occupies a byte of space, a Chinese character occupies two bytes of space.Symbol: English punctuation 2 is a byte, Chinese punctuation is two bytes.
A binary numeric sequence, as a digital unit in a computer, typically a 8-bit binary number,If an ASCII code is a byte, the conversion of such units is:
1000 gigabyte (tb,kil
Idle boredom comes to the end:
bit:
We often say bit, what is the bit. bit is the smallest unit of data in the legendary computer: it's 0 or 1, and the storage in the computer's memory is 01 of these two things. Well, yes, that's the way it is.
bytes:
English words: (byte), byte is the basic unit of measurement of storage space, so the problem is, since it is the measurement unit of storage space, what is the storage of it, you just have to remember these two words on OK: 1byte deposit 1 E
Network server bandwidth Mbps, MB/s, MB/s differenceThe meaning of MB/s is megabytes per second, MB/s means megabits per second, the former refers to the number of bytes transmitted per second, the latter refers to the number of bits transmitted per second. The two are completely different.The so-called 10M bandwidth,
56 kbps/8 = 7 kbps, that is, 7 kb of Data downloaded per second.
In the operating system, the disk capacity is 1024 in hexadecimal format between GB, MB, and kb. Hard Disk manufacturers usually calculate the disk capacity based on 1 GB = 1000 MB and 1 MB =
The data transmission rate units generally use MB/s or mbit/s, especially in the internal data transfer rate on the official data more use MBIT/S as the unit. There is a need to explain the difference between the two units:
The meaning of MB/s is megabytes per second, the meaning of mbit/s is megabits per second, which refers to the number of bytes transmitted p
Mbps and MB/s represent a different network transfer speed, and MB/s is 8 times times the Mbps.MBPS=MBIT/S is the abbreviation for megabits per second (Million bits by second). BPS (bits per second), which is the common unit of bit rate, bits/sec, bits/sec, transfer bits per second, data transfer rate .The size of the file is usually referred to as 8MByte. BYTE (byte) is a unit of measurement used by comput
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.