<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据换算</title>
<meta name="keywords" content="字节换算" />

<script language="javascript" type="text/javascript" src="http://www.bangnishouji.com/js/jquery.js" ></script>
<script type="text/javascript">
$(function(){$(".c_block .txt").keyup(function(){var b=$(this).attr('name'),c=parseFloat($(this).val()),d=this;if(isNaN(c)){return};var e=parseInt($('#decimals').val());if(isNaN(e)){e=6};$(".c_block .txt").each(function(){if(d==this){return};$(this).val(a.Round(a.conver(c,b,$(this).attr('name')),e))})})});var a={serial:'tb_gb_mb_kb_byte_bit',tb_one:1024,gb_one:1024,mb_one:1024,kb_one:1024,byte_one:8,byte_bit:function(h){return h*a.byte_one},kb_byte:function(h){return h*a.kb_one},mb_kb:function(h){return h*a.mb_one},gb_mb:function(h){return h*a.gb_one},tb_gb:function(h){return h*a.tb_one},big_small:function(h,j,k){var l=a.serial.split('_'),m='';for(i in l){if(m!=''&&l[i]==k){eval('h=a.'+m+'_'+l[i]+'('+h+')');return h}else if(m!=''){eval('h=a.'+m+'_'+l[i]+'('+h+')');m=l[i]};if(l[i]==j){m=l[i]}};return false},small_big:function(h,i,j){var k=a.big_small(1,j,i);return h/k},conver:function(h,i,j){var k=a.serial;if(k.indexOf(i)<0||k.indexOf(j)<0){alert('不能转换的存储单位')};if(i==j){return h};if(k.indexOf(i)<k.indexOf(j)){return a.big_small(h,i,j)}else{return a.small_big(h,i,j)}},Round:function(h,i){if(i==0)p=1;else{if(i)p=Math.pow(10,i);else p=100};return Math.round(h*p)/p}}
</script>
</head>

<body>

<div id="mbody" class="bw">
<div class="lc"><div class="lc-in">

<div class="listbox">
<div class="caption">
<h1>字节换算</h1></div>
<div class="hline"></div>
<div id="FDiv1" movable="1"><h3>字节换算器</h3></div>
<div id="FDiv2" movable="1">通过字节换算器你可以轻松的知道存储空间1g等于多少kb,1m等于多少kb,1T等于多少kb,一个字节等于多少位。你可以在左边输入框输入任意单位的数量,即可以换算出等于多少字节,MB,GB,TB.有些存储1MB实际是等于1千KB,而在计算机专业级来说1M等于1024KB,这个你可以在右边换算设置进行设置。</div>
<div class="c_block"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td colspan="2"><h3>输入换算数字</h3></td>
<td><h3>换算设置</h3></td>
</tr>
<tr>
<td width="90">Bit位</td>
<td width="200"><input type="text" name="bit" id="bit" class="txt" />
Bit </td>
<td>小数保留
<input name="decimals" type="text" id="decimals" value="6" class="txt1" size="6" />
位</td>
</tr>
<tr>
<td>字节</td>
<td><input type="text" name="byte" id="byte" class="txt" />
Byte </td>
<td>1Byte=
<input name="byte_one" type="text" id="byte_one" value="8" class="txt1" size="10" onkeyup="a.byte_one=parseInt(this.value)" />
Bit</td>
</tr>
<tr>
<td>千字节</td>
<td><input type="text" name="kb" id="kb" class="txt" />
KB</td>
<td>1KB=
<input name="kb_one" type="text" id="kb_one" value="1024" class="txt1" size="10" onkeyup="a.kb_one=parseInt(this.value)" />
Byte</td>
</tr>
<tr>
<td>兆字节</td>
<td><input type="text" name="mb" id="mb" class="txt" />
MB</td>
<td>1MB=
<input name="mb_one" type="text" id="mb_one" value="1024" class="txt1" size="10" onkeyup="a.mb_one=parseInt(this.value)" />
KB</td>
</tr>
<tr>
<td>吉字节</td>
<td><input type="text" name="gb" id="gb" class="txt" />
GB</td>
<td>1GB=
<input name="gb_one" type="text" id="gb_one" value="1024" class="txt1" size="10" onkeyup="a.gb_one=parseInt(this.value)" />
MB</td>
</tr>
<tr>
<td>太字节</td>
<td><input type="text" name="tb" id="tb" class="txt" />
TB</td>
<td>1TB=
<input name="tb_one" type="text" id="tb_one" class="txt1" value="1024" size="10" onkeyup="a.tb_one=parseInt(this.value)" />
GB</td>
</tr>
</table>
</div>
<div>
<p><h3>电脑中存储常用的单位全称读法:</h3></p>
<p>1KB (Kilobyte 千字节)=1024B, <br />
1MB (Megabyte,兆字节,简称&ldquo;兆&rdquo;)=1024KB, <br />
1GB (Gigabyte,吉字节,又称&ldquo;千兆&rdquo;)=1024MB, <br />
1TB (Terabyte,太字节,或百万兆字节)=1024GB,其中1024=2^10 ( 2 的10次方)。 </p>
<p><h3>电脑存储空间的计算方法有两种:</h3></p>
<p>1、电脑中,计数使用的都是二进制,它是以2的次方数来计算的。<br />
千,1KB=2的10次方=1024B,<br />
兆,1MB=2的20次方=1024*1024B=1024KB,<br />
吉,1GB=2的30次方=1024*1024*1024B=1024MB,<br />
太,1TB=2的40次方=1024*1024*1024*1024B=1024GB,<br />
拍,1PB=2的50次方=1024*1024*1024*1024*1024B=1024TB,<br />
艾,1EB=2的60次方=1024*1024*1024*1024*1024*1024B=1024PB,<br />
泽,1ZB=2的70次方=1024*1024*1024*1024*1024*1024*1024B=1024EB,<br />
尧,1YB=2的80次方=1024*1024*1024*1024*1024*1024*1024*1024B=1024ZB.<br />
再往上我暂时不知道,但我知道他们都是每个等于前一个乘以1024。<br />
2、此外还有一种算法,就是把1024看成整数1000称作千,也就是10的3次方,那么从千以后的兆、吉、太......相应地就是10的6、9、12、15、18、21。24次方。这种算法都是整数,比较好记。<br />
<br />
以上两种方法都是对的,只是场合不同用法不同。计算机行业偏重于用第一种,数学上一般用第二种。有些计算机厂商标注内存常使用第二种方法,这也许是一种商业行为吧,没有必要去深究,毕竟目前的法律还没有规定到这么详细。</p>
</div>
</div>

</div></div>
<style>

.idc-sf .in-gray{color:#CCC;}
.idc-sf{margin:4px 0px 15px;}
.idc-sf #idc{border:1px solid #D6D6D6;height:22px;padding:4px 8px;width:300px;float:left;border-right:none;color:#039;font-weight:bold;font-size:14px;}
.idc-sf #gbtn{background:#2B7801;height:32px;width:100px;border:none;color:#FFF;}
.idc-inf{}
.idc-inf .idc-inv{height:120px;}
.idc-inf .idc-inf-item{height:120px;font-size:14px;color:#333;}
.idc-inf .idc-inf-item li{line-height:200%;}
.idc-inf .idc-inf-item li label{width:80px;text-align:right;display:block;float:left;}
.idc-inf .idc-inf-item li:after {content:".";display:block;height:0;clear:both;visibility:hidden;}
.idc-inf .idc-inf-item li {display:inline-block;}
.idc-inf .idc-inf-item li {display:block;}/* Hide from IE Mac \*/
.idc-tip {line-height:180%;color:#F60;}

.idc-table{background:#EAEAEA;}
.idc-table th{text-align:left;background:#F3F3F3;height:24px;line-height:24px;}
.idc-table td{background:#FFF;height:24px;line-height:24px;}

.id-know strong{font-size:14px;color:#AAA;line-height:200%;}

.listbox{margin:8px 0px;line-height:180%}
.caption h1{text-align:center;line-height:200%}
h2,h3{margin-top:20px}
.btn_row{text-align:center}
#c_btn{margin:15px auto;height:26px;line-height:26px;width:80px;text-align:center}

Next
Pg.: 1 2


Back to home | File page

Subscribe | Register | Login | N