Files
ObsidianDragon/src/util/amount_format.cpp
DanS 9edab31728 Refactor app services and stabilize refresh/UI flows
- Add refresh scheduler and network refresh service boundaries for typed
  refresh results, ordered RPC collectors, applicators, and price parsing.
- Add daemon lifecycle and wallet security workflow helpers while preserving
  App-owned command RPC, decrypt, cancellation, and UI handoff behavior.
- Split balance, console, mining, amount formatting, and async task logic into
  focused modules with expanded Phase 4 test coverage.
- Fix market price loading by triggering price refresh immediately, avoiding
  queue-pressure drops, tracking loading/error state, and adding translations.
- Polish send, explorer, peers, settings, theme/schema, and related tab UI.
- Replace checked-in generated language headers with build-generated resources.
- Document the cleanup audit, UI static-state guidance, and architecture updates.
2026-04-29 12:47:57 -05:00

21 lines
417 B
C++

#include "amount_format.h"
#include <algorithm>
#include <iomanip>
#include <locale>
#include <sstream>
namespace dragonx {
namespace util {
std::string formatAmountFixed(double amount, int decimals)
{
std::ostringstream out;
out.imbue(std::locale::classic());
out << std::fixed << std::setprecision(std::max(0, decimals)) << amount;
return out.str();
}
} // namespace util
} // namespace dragonx