MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / get_float

Method get_float

src/Task.cpp:256–261  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

254
255////////////////////////////////////////////////////////////////////////////////
256float Task::get_float(const std::string& name) const {
257 auto i = data.find(name);
258 if (i != data.end()) return strtof(i->second.c_str(), nullptr);
259
260 return 0.0;
261}
262
263////////////////////////////////////////////////////////////////////////////////
264time_t Task::get_date(const std::string& name) const {

Callers 1

getDOMFunction · 0.80

Calls 1

findMethod · 0.80

Tested by

no test coverage detected