MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / as_double

Method as_double

Source/Utils/dukglue/dukvalue.h:324–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 }
323
324 inline double as_double() const {
325 if (mType != NUMBER)
326 throw DukException() << "Expected number, got " << type_name();
327 return mPOD.number;
328 }
329
330 inline float as_float() const {
331 if (mType != NUMBER)

Callers

nothing calls this directly

Calls 2

DukExceptionClass · 0.85
type_nameFunction · 0.85

Tested by

no test coverage detected