MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / toFloat

Function toFloat

source/utils/Helper.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 float toFloat(const std::string& text)
72 {
73 std::stringstream ss(text);
74 float number = 0.0;
75 ss >> number;
76 return number;
77 }
78
79 double toDouble(const std::string& text)
80 {

Callers 3

initConfigMethod · 0.85
cAmbientLightFunction · 0.85
cSetCameraFOVyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected