Answer the question
In order to leave comments, you need to log in
BTC network power units?
I am writing a power converter. Lack of knowledge in units of measurement.
I saw an example on one site. 100 Gh/s is 0.01 Th/s
what other units of BTC can be and what are they equal to?
Answer the question
In order to leave comments, you need to log in
1
1 x 1000 = kilo
1 x 1000 x 1000 = mega
1 x 1000 x 1000 x 1000 = giga
1 x 1000 x 1000 x 1000 x 1000
=
tera
meters, watts and other units of measurement from the SI system.
function hash($size)
{
if ($size < 100)
return $size . 'MH/s';
if ($size < 1000)
return sprintf("%4.2f Gh/s", $size);
if ($size < 1000000)
return sprintf("%4.2f TH/s", $size / 1000);
if ($size < 1000000)
return sprintf("%4.2f PH/s", $size / 1000000);
if ($size < 1000000000)
return sprintf("%4.2f TF/s", $size / 1000000000);
else
return sprintf("%4.2f TF/s", $size / 1000000000);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question