Fixed double formatting issue

This commit is contained in:
Benoit Blanchon
2014-11-01 13:30:37 +01:00
parent 825ab0357e
commit 9da7dce310
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ size_t Print::print(const char s[]) {
size_t Print::print(double value, int digits) {
char tmp[32];
sprintf(tmp, "%.*g", digits + 1, value);
sprintf(tmp, "%.*f", digits, value);
return print(tmp);
}