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

Method get_real

src/univalue/lib/univalue_get.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125double UniValue::get_real() const
126{
127 if (typ != VNUM)
128 throw std::runtime_error("JSON value is not a number as expected");
129 double retval;
130 if (!ParseDouble(getValStr(), &retval))
131 throw std::runtime_error("JSON double out of range");
132 return retval;
133}
134
135const UniValue& UniValue::get_obj() const
136{

Callers 6

ProcessReplyMethod · 0.80
ParseGetInfoResultFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
prioritisetransactionFunction · 0.80
estimaterawfeeFunction · 0.80

Calls 1

ParseDoubleFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64