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

Method getdouble

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

Source from the content-addressed store, hash-verified

127
128template <unsigned int BITS>
129double base_uint<BITS>::getdouble() const
130{
131 double ret = 0.0;
132 double fact = 1.0;
133 for (int i = 0; i < WIDTH; i++) {
134 ret += fact * pn[i];
135 fact *= 4294967296.0;
136 }
137 return ret;
138}
139
140template <unsigned int BITS>
141std::string base_uint<BITS>::GetHex() const

Callers 5

InvalidChainFoundMethod · 0.80
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
integer.cppFile · 0.80
GetNetworkHashPSFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64