History

fix rounding of credit balance in application title

Stephen Birarda committed 12 years ago

Commit ed5c05a1 parent 1992f621 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -3189,7 +3189,7 @@ void Application::updateWindowTitle(){ · 3188 unmodified lines
31893189 float creditBalance = accountManager.getAccountInfo().getBalance() / SATOSHIS_PER_CREDIT;
31903190
31913191 QString creditBalanceString;
3192− creditBalanceString.sprintf("%.8f", creditBalance);
3192+ creditBalanceString.sprintf("%.8f", floor(creditBalance + 0.5));
31933193
31943194 title += " - ₵" + creditBalanceString;
31953195 }