aboutsummaryrefslogtreecommitdiff
path: root/src/utilmoneystr.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-04 14:22:26 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-06 09:30:41 +0200
commit4b4b9a8de662e6327f78aaf04a1e83d45713c06a (patch)
treec706e3110388a099d914f7f27dace69f4eb76194 /src/utilmoneystr.h
parent12cdbabc26a58fe19b97a2e45a3d31ddc455bbc8 (diff)
Don't go through double in AmountFromValue and ValueFromAmount
My prime gripe with JSON spirit was that monetary values still had to be converted from and to floating point which can cause deviations (see #3759 and https://bitcoin.stackexchange.com/questions/22716/bitcoind-sendfrom-round-amount-error). As UniValue stores internal values as strings, this is no longer necessary. This avoids risky double-to-integer and integer-to-double conversions completely, and results in more elegant code to boot.
Diffstat (limited to 'src/utilmoneystr.h')
0 files changed, 0 insertions, 0 deletions