diff --git ./stdio-common/printf_fp.c ./stdio-common/printf_fp.c
index b8f8c5fc07..97bd6afda3 100644
--- ./stdio-common/printf_fp.c
+++ ./stdio-common/printf_fp.c
@@ -896,6 +896,11 @@ __printf_fp_buffer_1 (struct __printf_buffer *buf, locale_t loc,
 		    fracdig_no += intdig_no;
 		    intdig_no = 1;
 		    fracdig_max = intdig_max - intdig_no;
+		    if (info->alt)
+		      /* The alternative form retains trailing zeros, and
+			 the number of fractional digits it has to retain
+			 has just changed along with FRACDIG_MAX.  */
+		      fracdig_min = fracdig_max;
 		    ++p.exponent;
 		    /* Now we must print the p.exponent.	*/
 		    p.type = isupper (info->spec) ? 'E' : 'e';
diff --git ./stdio-common/tst-printf-format-skeleton-double.c ./stdio-common/tst-printf-format-skeleton-double.c
index ae3acb00f7..333bd568a2 100644
--- ./stdio-common/tst-printf-format-skeleton-double.c
+++ ./stdio-common/tst-printf-format-skeleton-double.c
@@ -30,7 +30,7 @@
 typedef double type_t;
 static const type_t vals[] =
   { -HUGE_VAL, -DBL_MAX, -DBL_MIN, -0.0, -NAN, NAN, 0, DBL_TRUE_MIN,
-    DBL_MIN, DBL_MAX, HUGE_VAL };
+    DBL_MIN, 99.9, DBL_MAX, HUGE_VAL };
 static const char length[] = "";
 
 #include "tst-printf-format-skeleton.c"
diff --git ./stdio-common/tst-printf-format-skeleton-ldouble.c ./stdio-common/tst-printf-format-skeleton-ldouble.c
index e323d621bb..0c828ec3b5 100644
--- ./stdio-common/tst-printf-format-skeleton-ldouble.c
+++ ./stdio-common/tst-printf-format-skeleton-ldouble.c
@@ -31,7 +31,7 @@
 typedef long double type_t;
 static const type_t vals[] =
   { -HUGE_VAL, -LDBL_MAX, -LDBL_MIN, -0.0, -NAN, NAN, 0, LDBL_TRUE_MIN,
-    LDBL_MIN, LDBL_MAX, HUGE_VAL };
+    LDBL_MIN, 99.9L, LDBL_MAX, HUGE_VAL };
 static const char length[] = "L";
 
 #ifndef TIMEOUT
