Package com.algorand.algosdk.util
Class AlgoConverter
- java.lang.Object
-
- com.algorand.algosdk.util.AlgoConverter
-
public class AlgoConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description AlgoConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigDecimal
toAlgos(BigInteger microalgos)
Convert microalgos to algos.static BigInteger
toMicroAlgos(BigDecimal algos)
Convert algos to microalgos.
-
-
-
Method Detail
-
toAlgos
public static BigDecimal toAlgos(BigInteger microalgos)
Convert microalgos to algos.- Parameters:
microalgos
-- Returns:
- algos
-
toMicroAlgos
public static BigInteger toMicroAlgos(BigDecimal algos)
Convert algos to microalgos.- Parameters:
algos
-- Returns:
- microalgos
-
-