aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-11-26 14:15:24 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-11-26 14:15:24 +0000
commit1d861783877eda29996a08184e62a181f96d6f75 (patch)
tree0c6940b19a7066e722132346d47120aa01bd9b7f /cores/arduino/Print.h
parent051eb371a6c277a9df95fd88f8a5abdd7fa60440 (diff)
Adding support for printing floats and doubles (defaulting to 2 decimal places)
Diffstat (limited to 'cores/arduino/Print.h')
-rwxr-xr-xcores/arduino/Print.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h
index 8cec235..c95a0dc 100755
--- a/cores/arduino/Print.h
+++ b/cores/arduino/Print.h
@@ -32,6 +32,7 @@ class Print
{
private:
void printNumber(unsigned long, uint8_t);
+ void printFloat(double, uint8_t);
public:
virtual void write(uint8_t);
void print(char);
@@ -42,6 +43,7 @@ class Print
void print(long);
void print(unsigned long);
void print(long, int);
+ void print(double);
void println(void);
void println(char);
void println(const char[]);
@@ -51,6 +53,7 @@ class Print
void println(long);
void println(unsigned long);
void println(long, int);
+ void println(double);
};
#endif