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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t