From b74a02cb217be5857afde7eb05ccdec686fe83f9 Mon Sep 17 00:00:00 2001 From: Iván Pérez Date: Mon, 12 Sep 2016 08:56:02 +0200 Subject: WString: add `toDouble` `toFloat` internally converts into double and then truncates into a float, so why not add a method to return the double? --- cores/arduino/WString.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cores/arduino/WString.h') diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index de5632c..08b8147 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -190,6 +190,7 @@ public: // parsing/conversion long toInt(void) const; float toFloat(void) const; + double toDouble(void) const; protected: char *buffer; // the actual char array -- cgit v1.2.3-18-g5258