mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 08:03:34 +08:00
CharArrayFormatter: using %g instead of %f for better readability
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user