Skip to content

Commit

Permalink
Display 8 decimals in RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Dec 10, 2018
1 parent 1dc60fd commit 851d0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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.%06d", sign ? "-" : "", quotient, remainder));
strprintf("%s%d.%06d00", sign ? "-" : "", quotient, remainder));
}

uint256 ParseHashV(const UniValue& v, string strName)
Expand Down

0 comments on commit 851d0c0

Please sign in to comment.