diff --git a/src/main/java/com/sun/tools/xjc/addon/krasa/JaxbValidationsPlugins.java b/src/main/java/com/sun/tools/xjc/addon/krasa/JaxbValidationsPlugins.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/sun/tools/xjc/addon/krasa/JaxbValidationsPlugins.java
+++ b/src/main/java/com/sun/tools/xjc/addon/krasa/JaxbValidationsPlugins.java
@@ -344,7 +344,7 @@ public class JaxbValidationsPlugins extends Plugin {
 			if (!hasAnnotation(field, Digits.class)) {
 				log("@Digits(" + totalDigits + "," + fractionDigits + "): " + propertyName
 						+ " added to class " + className);
-				JAnnotationUse annox = field.annotate(Digits.class).param("integer", (totalDigits - fractionDigits));
+				JAnnotationUse annox = field.annotate(Digits.class).param("integer", totalDigits);
 				annox.param("fraction", fractionDigits);
 			}
 			if (jpaAnnotations) {
Best possible fix for #<I> due to impedance mismatch JSR<I> vs XSD