MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / getdouble

Method getdouble

src/arith_uint256.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137template <unsigned int BITS>
138double base_uint<BITS>::getdouble() const
139{
140 double ret = 0.0;
141 double fact = 1.0;
142 for (int i = 0; i < WIDTH; i++) {
143 ret += fact * pn[i];
144 fact *= 4294967296.0;
145 }
146 return ret;
147}
148
149template <unsigned int BITS>
150std::string base_uint<BITS>::GetHex() const

Callers 4

InvalidChainFoundFunction · 0.80
UpdateTipFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
GetNetworkHashPSFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64