MCPcopy Create free account
hub / github.com/comaps/comaps / to_float

Function to_float

libs/base/string_utils.hpp:579–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577 return to_size_t(s.c_str(), i);
578}
579[[nodiscard]] inline bool to_float(std::string const & s, float & f)
580{
581 return to_float(s.c_str(), f);
582}
583[[nodiscard]] inline bool to_double(std::string const & s, double & d)
584{
585 return to_double(s.c_str(), d);

Callers 3

to_anyFunction · 0.70
UNIT_TESTFunction · 0.50
ParseFloatFunction · 0.50

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.40