Bitcoin Core  22.99.0
P2P Digital Currency
Functions
moneystr.cpp File Reference
#include <util/moneystr.h>
#include <amount.h>
#include <tinyformat.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <optional>
Include dependency graph for moneystr.cpp:

Go to the source code of this file.

Functions

std::string FormatMoney (const CAmount n)
 Money parsing/formatting utilities. More...
 
std::optional< CAmountParseMoney (const std::string &money_string)
 Parse an amount denoted in full coins. More...
 

Function Documentation

◆ FormatMoney()

std::string FormatMoney ( const CAmount  n)

Money parsing/formatting utilities.

Definition at line 15 of file moneystr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseMoney()

std::optional<CAmount> ParseMoney ( const std::string &  str)

Parse an amount denoted in full coins.

E.g. "0.0034" supplied on the command line.

Definition at line 41 of file moneystr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: