Integer g calculation formula of hard disk partition with online computing tools [Original]_ Application Tips

Source: Internet
Author: User

Integer g Calculation formula: (X-1) *4+1024*x=y 

where X is the value of the integer partition you want to get, the unit is G,y is the number you should enter when you partition, the unit is m, 

For example, I want to get 3G integer space under Windows, then I should enter (3-1) *4+1024*3=3080, 

When partitioning, then we should enter 3080 as the partition's size, 

The equivalent of 10G space should be (10-1) *4+1024*10=10276, input 10276 will get 10G of integer space!
Additional online computing gadgets provided by the cloud-dwelling community webmaster

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <ptml> <pead> <title> hard disk partition integer g calculation -Online calculation </title> <script> function Doresult () {if (document.form1.num.value== ') {alert (' Please enter a number '); return false; }else {var re=/[^0-9]+/g; if (Re.test (Document.form1.num.value)) {alert (' Please enter a number '); return false; } var thenum=parseint (document.form1.num.value); var theresult= (thenum-1) *4+1024*thenum; document.getElementById (' Theshow '). innertext=theresult.tostring (); } </script> </pead> <body> <form name=form1> <input name=num onkeyup= "This.value=this.val Ue.replace (/[^\d]*/g, ') "onbeforepaste=" Clipboarddata.setdata (' text ', Clipboarddata.getdata (' text '). Replace (/[^ \d]*/g, ') "> <span id=theshow ></span> <button onclick=" Javascript:doresult () "><font color= Red> calculation </font></button> </form> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.