Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
initConfig
Method · 0.85
cAmbientLight
Function · 0.85
cSetCameraFOVy
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected