6 #ifndef RAVEN_QT_ASSETRECORD_H 7 #define RAVEN_QT_ASSETRECORD_H 25 AssetRecord(
const std::string _name,
const CAmount& _quantity,
const int _units,
const bool _fIsAdministrator):
33 int64_t quotient = n_abs / COIN;
34 int64_t remainder = n_abs % COIN;
35 remainder = remainder / pow(10, 8 -
units);
38 return strprintf(
"%s%d", sign ?
"-" :
"", quotient);
41 return strprintf(
"%s%d.%0" + std::to_string(
units) +
"d", sign ?
"-" :
"", quotient, remainder);
55 #endif // RAVEN_QT_ASSETRECORD_H
int64_t CAmount
Amount in corbies (Can be negative)
UI model for unspent assets.
AssetRecord(const std::string _name, const CAmount &_quantity, const int _units, const bool _fIsAdministrator)
std::string formattedQuantity() const