commit | b96aed0f3e8e84cc6dab86aa72a426854bd45516 | [log] [tgz] |
---|---|---|
author | Baptiste Lepilleur <baptiste.lepilleur@gmail.com> | Fri Dec 24 19:30:06 2010 +0000 |
committer | Baptiste Lepilleur <baptiste.lepilleur@gmail.com> | Fri Dec 24 19:30:06 2010 +0000 |
tree | e0db54603c513433897c542dfe8b0b70eb17046a | |
parent | fa130ef871bef9940ce7a39d4d10a4f2263ec1ac [diff] |
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).
diff --git a/include/json/value.h b/include/json/value.h index e9632a2..8d0d4c1 100644 --- a/include/json/value.h +++ b/include/json/value.h
@@ -240,6 +240,7 @@ # endif Int asInt() const; UInt asUInt() const; + float asFloat() const; double asDouble() const; bool asBool() const;