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

Method getdouble

src/arith_uint256.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64