MCPcopy Create free account
hub / github.com/ElementsProject/elements / getdouble

Method getdouble

src/arith_uint256.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
GetNetworkHashPSFunction · 0.80

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64