Bit & Bytes Data Conversion

77 Views Asked by At

My query is related mathematical calculations.

Please explain me … how to do any data conversion faster like Gb to MB, Mb to KB, TB to Kb, Kb to TB, …. etc?

Regards GNS

2

There are 2 best solutions below

0
On

All those metric prefixes are factors of $1000$ apart, so you just change the exponent on $10$ by $3$. In computerspeak we often use a ratio of $2^{10}=1024 \approx 1000$ for the prefixes. It is not very different.

1
On
  • T =$10^{12}$, G=$10^9$, M=$10^6$, K=$10^3$.
  • B=$8$b

So for instance, $x$ Gb to $y$ MB is $x\times10^9$b to $y\times10^6\times8$b.

You can see that $y=\frac{10^3}{8}$. A formula can be derived by this observation...