CharArrayFormatter: using %g instead of %f for better readability

This commit is contained in:
Pavel Kirienko
2014-08-16 13:43:24 +04:00
parent e2e358bb06
commit d816d58b30
3 changed files with 7 additions and 7 deletions
@@ -29,7 +29,7 @@ class UAVCAN_EXPORT CharArrayFormatter
typename std::enable_if<std::is_floating_point<T>::value>::type
writeValue(T value)
{
array_.template appendFormatted<double>("%f", double(value));
array_.template appendFormatted<double>("%g", double(value));
}
template <typename T>