Reduced number of digits after decimal separator to 4.

This commit is contained in:
leozide 2017-07-20 17:57:07 -07:00
parent b2c739dc5a
commit c02e19a2eb

View file

@ -26,7 +26,7 @@ QString lcFormatValueLocalized(float Value)
QLocale Locale = QLocale::system();
Locale.setNumberOptions(QLocale::OmitGroupSeparator);
QChar DecimalPoint = Locale.decimalPoint();
QString String = Locale.toString(Value, 'f', 6);
QString String = Locale.toString(Value, 'f', 4);
if (String.indexOf(DecimalPoint) != -1)
{