BitShares Forum

Main => General Discussion => Topic started by: ElMato on March 18, 2015, 08:47:02 am

Title: Wrong amount in small orders
Post by: ElMato on March 18, 2015, 08:47:02 am
When i submit a bid wanting to buy 8 BTS @ 0.000132555 USD i get this in the orderbook.
Code: [Select]
0.0010 USD                7.54403 BTS                     0.000132555000 USD
Why i don't get the full 8 BTS?

When buying 4 BTS
Code: [Select]
0.0005 USD                3.81679 BTS                     0.000131000000 USD
When buying 2 BTS
Code: [Select]
0.0002 USD                1.65289 BTS                     0.000121000000 USD
Is this a precision problem?
Title: Re: Wrong amount in small orders
Post by: pc on March 18, 2015, 09:31:58 am
When i submit a bid wanting to buy 8 BTS @ 0.000132555 USD i get this in the orderbook.
Code: [Select]
0.0010 USD                7.54403 BTS                     0.000132555000 USD
Why i don't get the full 8 BTS?

For 8 BTS you'd have to pay .001060440000 USD. But USD is limited to 4 decimals, so you can either have 7.54403 for .001 USD or 8.29844 BTS for .0011 USD. Apparently the client is always rounding down.