Changeset View
Changeset View
Standalone View
Standalone View
src/util/moneystr.h
Show All 13 Lines | |||||
#include <string> | #include <string> | ||||
/** | /** | ||||
* Do not use these functions to represent or parse monetary amounts to or from | * Do not use these functions to represent or parse monetary amounts to or from | ||||
* JSON but use AmountFromValue and ValueFromAmount for that. | * JSON but use AmountFromValue and ValueFromAmount for that. | ||||
*/ | */ | ||||
std::string FormatMoney(const Amount n); | std::string FormatMoney(const Amount n); | ||||
/** | |||||
* Parse an amount denoted in full coins. E.g. "0.0034" supplied on the command | |||||
* line. | |||||
**/ | |||||
NODISCARD bool ParseMoney(const std::string &str, Amount &nRet); | NODISCARD bool ParseMoney(const std::string &str, Amount &nRet); | ||||
NODISCARD bool ParseMoney(const char *pszIn, Amount &nRet); | |||||
#endif // BITCOIN_UTIL_MONEYSTR_H | #endif // BITCOIN_UTIL_MONEYSTR_H |