Bit-----bit, bit, both of which can be said. It is the smallest unit of storage data in the computer.For example: 1111 1111 or 0000 0000 Each 1 or each 0 is a bit.byte--byte (denoted by B), which is the basic unit of computer storage capacity1 byte = 8 bit = "A" or "B"//is a letter of 26 letters anyway.2 byte = 1 Kanji
I learned the fread reading command and used the filesize function to compile the statistics file size function.
I learned the fread reading command and used the filesize function to compile the statistics file size function.
Use the filesize () function command to calculate the file size. The value 1 must be an output of GB, MB, KB, and B. 2. the order of magnitude must be greater than 1 and less than
Using the FileSize () function command to achieve file size statistics, requires: 1, in GB, MB, KB, b in one output; 2. The order of magnitude must be greater than 1 and less than 1024, and two decimal places are reserved;
Commenced construction:
Copy CodeThe code is as follows:
$len = FileSize ("1.RMVB");
$i = 4;
while ($i) {
if ($out = $len/pow (1024x768, $i))
Using the FileSize () function command to achieve file size statistics, requires: 1, in GB, MB, KB, b in one output; 2. The order of magnitude must be greater than 1 and less than 1024, and two decimal places are reserved;
Commenced construction:
Copy the Code code as follows:
$len = FileSize ("1.RMVB");$i = 4;while ($i) {if ($out = $len/pow (1024x768, $i)) >1.0| | $i ==1) {Switch ($i) {Case 4: {printf ("%
PHP implements the original method of converting Byte to KB, MB, GB, and TB.
This example describes how to convert the number of bytes in PHP to KB, MB, GB, or TB. We will share this with you for your reference. The details are as follows:
The previous section describes how to convert the number of bytes in java to
Use the filesize () function command to calculate the file size. The value 1 must be an output of GB, MB, KB, and B. 2. the order of magnitude must be greater than 1 and less than 1024, and two decimal places must be retained;
Start:
Copy codeThe Code is as follows: $ len = filesize ("1. rmvb ");
$ I = 4;
While ($ I ){
If ($ out = $ len/pow (1024, $ I)> 1.0
Php obtains the file size and converts the file size to gb, mb, and kb. this code uses the php program to obtain the file size and displays the file size as gb, mb, the code of kb code is very intelligent. the code is as follows:
Use the FileSize () function command to implement statistics for file size, requiring: 1, one output in GB, MB, KB, B, 2. The order of magnitude must be greater than 1 less than 1024 and retain two decimal places;
Commencement of construction:
Copy Code code as follows:
$len = FileSize ("1.RMVB");
$i = 4;
while ($i) {
if ($out = $len/pow (1024, $i) >1.0| | $i ==1) {
Switch ($i) {
C
Do you know how much data the bit, Byte, KB, GB, TB, etc. all mean? Have you ever heard of Pb, EB, ZB, YB?
Bit (bit) is the English abbreviation of binary digit, the unit of measuring information, is also the smallest unit that represents the quantity, only 0, 12 kinds of binary states. The 8 bit consists of a byte (by
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-
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 con
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
Oracle users01.dbf is getting bigger and bigger. After oracle deletes data, the tablespace is not released, and the dbf file is getting bigger and bigger. You can use: SQL> ALTER DATABA
We know whether the network file or broadband bandwidth or mobile Internet traffic, its units are m (trillion), a lot of friends mobile phone general selection of 5 yuan packet 30M flow, the general Internet chat QQ, browsing some mobile Web pages are enough. So there are a lot of rookie friends often ask small 1M equals how many KB or 1M how big?
The so-called KB MB G
1. Bit is the smallest unit of data in a computer, and each bit can have a status of only 0 or 12. Byte (byte) 1Byte = 8 bit It is the basic unit of measurement for storage space, and 1byte can store an English letter or half Chinese characters. 3. The word consists of a number of bytes, the number of words is called word length, different grades of machines hav
, pronounced "Y-byte"There are also legends.1NiB (Nonabyte) =1024yib, which is 2 of 90 square bytes1DiB (Doggabyte) =1024nib, which is 2 of 100 square bytes1CiB (Corydonbyte) =1024dib, which is 2 of 110 square bytesNote: A lot of information on the Internet has the nib and Dib reversed. NB is not the largest, more than
The folder size in the USB flash drive is dozens of GB. The folder size is garbled and cannot be deleted.
Today, I inserted a USB flash drive on my classmate's computer and copied a video file. Later, I installed the system and used the USB flash drive to copy the driver file, but I couldn't install the copied driver file, A black window always disappears. I sta
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.