Changeset View
Changeset View
Standalone View
Standalone View
src/util/moneystr.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2015 The Bitcoin Core developers | // Copyright (c) 2009-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <util/moneystr.h> | #include <util/moneystr.h> | ||||
#include <consensus/amount.h> | |||||
#include <tinyformat.h> | #include <tinyformat.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/string.h> | #include <util/string.h> | ||||
std::string FormatMoney(const Amount amt) { | std::string FormatMoney(const Amount amt) { | ||||
// Note: not using straight sprintf here because we do NOT want localized | // Note: not using straight sprintf here because we do NOT want localized | ||||
// number formatting. | // number formatting. | ||||
Amount amt_abs = amt > Amount::zero() ? amt : -amt; | Amount amt_abs = amt > Amount::zero() ? amt : -amt; | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |