Bitcoin Core  0.20.99
P2P Digital Currency
Functions
moneystr.h File Reference
#include <amount.h>
#include <attributes.h>
#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 (const CAmount &n)
 Money parsing/formatting utilities. More...
 
NODISCARD bool ParseMoney (const std::string &str, CAmount &nRet)
 Parse an amount denoted in full coins. More...
 

Function Documentation

◆ FormatMoney()

std::string FormatMoney ( const CAmount n)

Money parsing/formatting utilities.

Definition at line 12 of file moneystr.cpp.

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

◆ ParseMoney()

NODISCARD bool ParseMoney ( const std::string &  str,
CAmount nRet 
)

Parse an amount denoted in full coins.

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

Definition at line 34 of file moneystr.cpp.

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