Fix Decima64.valueOf(String)
[yangtools.git] / common / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Decimal64.java
index a16ab1b4ef76feb95ae52fc8a4bd14cfce2547b8..1c9aa753e82923d4a9f620f17361b6fcf6cb58d4 100644 (file)
@@ -112,7 +112,7 @@ public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
                 limit--;
             }
 
-            final int fracLimit = MAX_FRACTION_DIGITS - intLen;
+            final int fracLimit = MAX_FRACTION_DIGITS - intLen + 1;
             byte fracLen = 0;
             long fracPart = 0;
             for (; idx <= limit; idx++, fracLen++) {