can't i send asset quantity as float number?

+1 vote
i am using sendassetfrom to transfer money from one address to other address .if i send asset quantity as (let say) 56.72 ,the transaction occurs of 56.70 not 56.72.i am not passing anything for native amount parameter.cant the transaction be of same amount that 56.72?please help me fix this.

what is the use of native amount parameter in sendassetfrom command and i am using an asset whose native amount i have defined as 0.1.
asked Dec 28, 2017 by anonymous
edited Dec 28, 2017

1 Answer

0 votes
When you create an asset, you specify the smallest unit that it can be divided into. In this case it sounds like you set the smallest unit to 0.1. This means that you cannot send an amount of 56.72, only 56.70 or 56.80. It works just like regular currency, e.g. the smallest unit for dollars is $0.01, so you cannot pay someone $0.002.
answered Dec 29, 2017 by MultiChain
...