Use float instead of double to reduce the size of JsonVariant (issue #134)

This commit is contained in:
Benoit Blanchon
2015-10-30 23:03:16 +01:00
parent 9f3ce18f06
commit c0cf9c3fcc
15 changed files with 170 additions and 81 deletions

View File

@ -20,6 +20,7 @@ class Print {
size_t print(const char[]);
size_t print(double, int = 2);
size_t print(int);
size_t print(long);
size_t println();
};

View File

@ -16,6 +16,7 @@ class String : public std::string {
String(const char *cstr = "") : std::string(cstr) {}
String(const String &str) : std::string(str) {}
explicit String(long);
explicit String(int);
explicit String(double, unsigned char decimalPlaces = 2);
};