From 7bd273bb28848a66640bef3cbbbd5c0119227b4a Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 5 Aug 2012 16:22:55 +0300 Subject: [PATCH] Reduced default precision to 10 with section variables --- Library/ConfigParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ConfigParser.cpp b/Library/ConfigParser.cpp index afea0fde..9c0aadd8 100644 --- a/Library/ConfigParser.cpp +++ b/Library/ConfigParser.cpp @@ -275,7 +275,7 @@ bool CConfigParser::GetSectionVariable(std::wstring& strVariable, std::wstring& } } - int decimals = decimalsSz && *decimalsSz ? _wtoi(decimalsSz) : 15; + int decimals = decimalsSz && *decimalsSz ? _wtoi(decimalsSz) : 10; double value = percentual ? measure->GetRelativeValue() * 100.0 : measure->GetValue() / scale; WCHAR format[32];