mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-02 00:31:24 +00:00
Higher precision for Fiat values in DOGE land
This commit is contained in:
@@ -35,8 +35,9 @@ public final class Fiat implements Monetary, Comparable<Fiat>, Serializable {
|
|||||||
/**
|
/**
|
||||||
* The absolute value of exponent of the value of a "smallest unit" in scientific notation. We picked 4 rather than
|
* The absolute value of exponent of the value of a "smallest unit" in scientific notation. We picked 4 rather than
|
||||||
* 2, because in financial applications it's common to use sub-cent precision.
|
* 2, because in financial applications it's common to use sub-cent precision.
|
||||||
|
* Since a single DOGE has a low fiat value we need to up the precision here.
|
||||||
*/
|
*/
|
||||||
public static final int SMALLEST_UNIT_EXPONENT = 4;
|
public static final int SMALLEST_UNIT_EXPONENT = 8;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of smallest units of this monetary value.
|
* The number of smallest units of this monetary value.
|
||||||
|
Reference in New Issue
Block a user