JsonData¶
GetFloatData¶
long double GetFloatData() const
Attempts to return this JsonData's float data.
If this JsonData is not of type FLOAT, but of type INTEGER, it will return the integers value casted to float.
If this JsonData is neither of type FLOAT, nor INTEGER, it will throw a JsonWrongDataTypeException.
You can check this via GetDataType().
Aliases¶
Alternative ways to call this function
myJsonData.AsFloat;float f = myJsonData;