Added float Json::Value::asFloat() to obtain a floating point value as a float (avoid lost of precision warning caused by used of asDouble() to initialize a float).

This commit is contained in:
Baptiste Lepilleur
2010-12-24 19:30:06 +00:00
parent fa130ef871
commit b96aed0f3e
4 changed files with 42 additions and 0 deletions

View File

@@ -240,6 +240,7 @@ namespace Json {
# endif
Int asInt() const;
UInt asUInt() const;
float asFloat() const;
double asDouble() const;
bool asBool() const;