diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-06-21 21:23:12 +0200 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-06-26 16:04:15 +0200 |
commit | f07c6f2a52af85a63e9e4ebb98d4673b4183287a (patch) | |
tree | fae9fa99088155d956b9c408d02b13f547007dea /cores/robot/WString.cpp | |
parent | 85b4bb185de92325dbd9c76255c040bd32bbbebc (diff) |
String: changed default to 2 decimal digits
Diffstat (limited to 'cores/robot/WString.cpp')
-rw-r--r-- | cores/robot/WString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/robot/WString.cpp b/cores/robot/WString.cpp index 8c85cc5..48c30df 100644 --- a/cores/robot/WString.cpp +++ b/cores/robot/WString.cpp @@ -325,14 +325,14 @@ unsigned char String::concat(unsigned long num) unsigned char String::concat(float num) { char buf[20]; - char* string = dtostrf(num, 8, 6, buf); + char* string = dtostrf(num, 8, 2, buf); return concat(string, strlen(string)); } unsigned char String::concat(double num) { char buf[20]; - char* string = dtostrf(num, 8, 6, buf); + char* string = dtostrf(num, 8, 2, buf); return concat(string, strlen(string)); } |