Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
moneystr.h File Reference
#include <consensus/amount.h>
#include <optional>
#include <string>
Include dependency graph for moneystr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ FormatMoney()

std::string FormatMoney ( CAmount n)

Money parsing/formatting utilities.

Definition at line 19 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 45 of file moneystr.cpp.

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