Correct partitioning, turn 1.99g into 2G integer

xiaoxiao2021-03-20  234

Form: Air

Recently found a very strange phenomenon, many friends have a large number of partitions similar to 1.99GB, 3.93GB, but in fact, our original intention is not like this, we want the partition size of an integer. For example, 2GB, 4GB, etc., and we are also clearly calculated according to the formula of 1 GB = 1024MB, such as a 2GB, is 2048MB. In actually, when the partition is performed, the formula of 1GB = 1024MB directly is not correct, and we can calculate the value of the integer partition as long as we change the formula. Here we set the integer GB of the partition to "N", the correct calculation formula should be: (N-1) * 4 1024 * n The result unit calculated in accordance with this formula is MB. For example, you want to get a 2GB partition, the formula should be: (2-1) * 4 1024 * 2 = 2052MB that is to get 2052MB when you enter 2052MB to get a 2GB partition, and we Normally input 2048MB is of course shown to be 1.99GB. For another example, you want to get an 8GB partition, according to the formula (8-1) * 4 1024 * 8 = 8220MB, you only need to enter 8220MB to get an 8GB integer partition. Master this formula, you can calculate any other partition size, now look at your hard drive, no 1.99GB partition, is it more comfortable?

转载请注明原文地址:https://www.9cbs.com/read-130344.html

New Post(0)