Format with g instead of f with printing doubles in CppUnitLite

release/4.3a0
Richard Roberts 2012-04-09 03:02:30 +00:00
parent ed91c5c9ff
commit 2f0b3cbe02
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ SimpleString StringFrom (long value)
SimpleString StringFrom (double value)
{
char buffer [DEFAULT_SIZE];
sprintf (buffer, "%lf", value);
sprintf (buffer, "%lg", value);
return SimpleString(buffer);
}