Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChaiScript/ChaiScript
/ to_float
Method
to_float
include/chaiscript/utility/json.hpp:332–332 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
330
}
331
332
double to_float() const { bool b; return to_float( b ); }
333
double to_float( bool &ok ) const {
334
ok = (internal.Type == Class::Floating);
335
return ok ? internal.Float : 0.0;
Callers
1
from_json
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected