Skip to content

Commit

Permalink
our smallest unit is 1 / 1000000 of peercoin
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Oct 2, 2018
1 parent a2bc80a commit e7c6531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core_write.cpp
Expand Up @@ -23,7 +23,7 @@ UniValue ValueFromAmount(const CAmount& amount)
int64_t quotient = n_abs / COIN;
int64_t remainder = n_abs % COIN;
return UniValue(UniValue::VNUM,
strprintf("%s%d.%08d", sign ? "-" : "", quotient, remainder));
strprintf("%s%d.%06d", sign ? "-" : "", quotient, remainder));
}

std::string FormatScript(const CScript& script)
Expand Down

0 comments on commit e7c6531

Please sign in to comment.