J
J
jaster3512017-11-20 05:33:01
bitcoin
jaster351, 2017-11-20 05:33:01

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

2 answer(s)
S
Stalker_RED, 2017-11-20
@jaster351

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.

J
jaster351, 2017-11-20
@jaster351

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 question

Ask a Question

731 491 924 answers to any question