public class TRXAssetConversion extends Object
Constructor and Description |
---|
TRXAssetConversion(int num,
int trxNum)
Creates a new instance of TRXAssetConversion
|
Modifier and Type | Method and Description |
---|---|
double |
assetToTRX(long assets)
Converts assets to TRX
|
int |
getNum() |
int |
getTrxNum() |
long |
trxToAsset(double trx)
Converts TXT to assets.
|
public TRXAssetConversion(int num, int trxNum)
num
- The number of assetstrxNum
- The number of TRXpublic long trxToAsset(double trx)
trx
- The number of TRXpublic double assetToTRX(long assets)
assets
- The number of assetspublic int getTrxNum()
public int getNum()
Copyright © 2020. All rights reserved.