Package org.bitcoinj.base
Interface Monetary
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getValue()
Returns the number of "smallest units" of this monetary value.int
signum()
int
smallestUnitExponent()
Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation.
-
-
-
Method Detail
-
smallestUnitExponent
int smallestUnitExponent()
Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation. For Bitcoin, a satoshi is worth 1E-8 so this would be 8.
-
getValue
long getValue()
Returns the number of "smallest units" of this monetary value. For Bitcoin, this would be the number of satoshis.
-
signum
int signum()
-
-