forked from bblanchon/ArduinoJson
Test casting a JsonValue to a double
This commit is contained in:
1 parent
028ff6676e
commit
c10bcee324
2 files changed
+16
-6
No files matched your search
@@ -69,6 +69,11 @@ namespace ArduinoJson
|
||||
return "";
|
||||
}
|
||||
|
||||
operator double()
|
||||
{
|
||||
return content.asDouble;
|
||||
}
|
||||
|
||||
operator int()
|
||||
{
|
||||
return content.asLong;
|
||||
|
||||
Reference in new issue
Block a user