bitcoind sendfrom round amount error

1

I have problem with bitcoind with the command sendfrom

Example :

./bitcoind sendfrom test1 1.99990005

The value when command "listtransaction test1" is 1.99990004.

I'm using bitcoind in ubuntu 12:04 locale en_US.UTF-8

Thanks for help.

user13918

Posted 2014-02-26T14:16:26.577

Reputation: 11

@NateEldredge: The one Satoshi difference between the two amounts would appear to be the problem.pyramids 2014-02-26T16:44:02.707

What version of bitcoin?wumpus 2014-02-26T18:55:02.797

My version is 0.8.6user13918 2014-02-26T20:10:01.227

I've tried this on testnet and I've been unable to reproduce this with 0.8.6. 1.99990005 is always parsed as 1.99990005. What CPU architecture? Have you compiled from source or using the precompiled executable?wumpus 2014-02-27T07:17:26.193

To avoid ambiguity by using doubles and floating point numbers, IMO we should switch to decimal strings instead of numbers for monetary amounts in the RPC interface. See https://github.com/bitcoin/bitcoin/pull/3759

wumpus 2014-02-28T08:29:41.550

No answers