Bitcoin ABC  0.28.12
P2P Digital Currency
Functions
moneystr.h File Reference
#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 Amount n)
 Do not use these functions to represent or parse monetary amounts to or from JSON but use AmountFromValue and the Amount::operator UniValue() for that. More...
 
bool ParseMoney (const std::string &str, Amount &nRet)
 Parse an amount denoted in full coins. More...
 

Function Documentation

◆ FormatMoney()

std::string FormatMoney ( const Amount  n)

Do not use these functions to represent or parse monetary amounts to or from JSON but use AmountFromValue and the Amount::operator UniValue() for that.

Definition at line 13 of file moneystr.cpp.

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

◆ ParseMoney()

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

Parse an amount denoted in full coins.

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

Definition at line 37 of file moneystr.cpp.

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