From 0c5b2cf69ae20f83cbd894bb19d0e111623bae0f Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Sun, 10 May 2015 15:53:54 +0200 Subject: univalue: add support for real, fix percision and make it json_spirit compatible - avoid breaking the API because of different number/percision handling --- src/univalue/univalue.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/univalue/univalue.h') diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h index 28d6e3d3cd..efcf202bdd 100644 --- a/src/univalue/univalue.h +++ b/src/univalue/univalue.h @@ -17,7 +17,7 @@ class UniValue { public: - enum VType { VNULL, VOBJ, VARR, VSTR, VNUM, VBOOL, }; + enum VType { VNULL, VOBJ, VARR, VSTR, VNUM, VREAL, VBOOL, }; UniValue() { typ = VNULL; } UniValue(UniValue::VType initialType, const std::string& initialStr = "") { @@ -76,6 +76,7 @@ public: bool isBool() const { return (typ == VBOOL); } bool isStr() const { return (typ == VSTR); } bool isNum() const { return (typ == VNUM); } + bool isReal() const { return (typ == VREAL); } bool isArray() const { return (typ == VARR); } bool isObject() const { return (typ == VOBJ); } -- cgit v1.2.3