MCPcopy Create free account
hub / github.com/LUX-Core/lux / getdouble

Method getdouble

src/uint256.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

GetNetworkHashPSFunction · 0.45
InvalidChainFoundFunction · 0.45
UpdateTipFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36