From ac126282890c9e31a8c02a222f24ba33ab3ef047 Mon Sep 17 00:00:00 2001 From: langerhans Date: Wed, 31 Dec 2014 19:23:51 +0100 Subject: [PATCH] Higher precision for Fiat values in DOGE land --- core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java index 196bd2f3..19cd9c34 100644 --- a/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java @@ -35,8 +35,9 @@ public final class Fiat implements Monetary, Comparable, Serializable { /** * 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. + * 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.