MCPcopy Create free account
hub / github.com/Clarionos/clarion / to_double

Function to_double

libraries/fc/src/string.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 } FC_CAPTURE_AND_RETHROW( (i) ) }
117
118 double to_double( const fc::string& i)
119 {
120 try
121 {
122 return boost::lexical_cast<double>(i.c_str(), i.size());
123 }
124 catch( const boost::bad_lexical_cast& e )
125 {
126 FC_THROW_EXCEPTION( parse_error_exception, "Couldn't parse double" );
127 }
128 FC_RETHROW_EXCEPTIONS( warn, "${i} => double", ("i",i) )
129 }
130
131 fc::string to_string(double d)
132 {

Callers 3

as_doubleMethod · 0.85
number_from_streamFunction · 0.85
json_relaxed.hppFile · 0.85

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected