Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
a7d30fb0ff
1 changed files with 2 additions and 2 deletions
|
@ -401,8 +401,8 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
|
|
||||||
|
|
||||||
//TODO convert the amount to long type using the precision of the currency
|
//TODO convert the amount to long type using the precision of the currency
|
||||||
Long amountFromEditText = Long.parseLong(this.etAmount.getText().toString());
|
Double amountFromEditText = Double.parseDouble(this.etAmount.getText().toString());
|
||||||
Long amount = amountFromEditText*Math.round(Math.pow(10,((CryptoCurrency)spAsset.getSelectedItem()).getPrecision()));
|
Long amount = (long)Math.floor(amountFromEditText*Math.round(Math.pow(10,((CryptoCurrency)spAsset.getSelectedItem()).getPrecision())));
|
||||||
|
|
||||||
final ValidateBitsharesSendRequest sendRequest = new ValidateBitsharesSendRequest(
|
final ValidateBitsharesSendRequest sendRequest = new ValidateBitsharesSendRequest(
|
||||||
this.getContext(),
|
this.getContext(),
|
||||||
|
|
Loading…
Reference in a new issue