diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c
index d002e86..ed78665 100644
--- a/MagickWand/mogrify.c
+++ b/MagickWand/mogrify.c
@@ -1309,7 +1309,8 @@
             if (*option == '+')
               threshold=40.0*QuantumRange/100.0;
             else
-              threshold=StringToDoubleInterval(argv[i+1],QuantumRange);
+              threshold=StringToDoubleInterval(argv[i+1],(double) QuantumRange+
+                1.0);
             mogrify_image=DeskewImage(*image,threshold,exception);
             break;
           }
@@ -1507,7 +1508,8 @@
             (void) SyncImageSettings(mogrify_info,*image,exception);
             op=(MagickEvaluateOperator) ParseCommandOption(
               MagickEvaluateOptions,MagickFalse,argv[i+1]);
-            constant=StringToDoubleInterval(argv[i+2],QuantumRange);
+            constant=StringToDoubleInterval(argv[i+2],(double) QuantumRange+
+              1.0);
             (void) EvaluateImage(*image,op,constant,exception);
             break;
           }
@@ -1978,8 +1980,7 @@
           }
         if (LocaleCompare("linewidth",option+1) == 0)
           {
-            draw_info->stroke_width=StringToDouble(argv[i+1],
-              (char **) NULL);
+            draw_info->stroke_width=StringToDouble(argv[i+1],(char **) NULL);
             break;
           }
         if (LocaleCompare("liquid-rescale",option+1) == 0)
@@ -2618,7 +2619,8 @@
               Sepia-tone image.
             */
             (void) SyncImageSettings(mogrify_info,*image,exception);
-            threshold=StringToDoubleInterval(argv[i+1],QuantumRange);
+            threshold=StringToDoubleInterval(argv[i+1],(double) QuantumRange+
+              1.0);
             mogrify_image=SepiaToneImage(*image,threshold,exception);
             break;
           }
@@ -2782,7 +2784,8 @@
               threshold;
 
             (void) SyncImageSettings(mogrify_info,*image,exception);
-            threshold=StringToDoubleInterval(argv[i+1],QuantumRange);
+            threshold=StringToDoubleInterval(argv[i+1],(double) QuantumRange+
+              1.0);
             (void) SolarizeImage(*image,threshold,exception);
             break;
           }
@@ -2888,8 +2891,7 @@
           }
         if (LocaleCompare("strokewidth",option+1) == 0)
           {
-            draw_info->stroke_width=StringToDouble(argv[i+1],
-              (char **) NULL);
+            draw_info->stroke_width=StringToDouble(argv[i+1],(char **) NULL);
             break;
           }
         if (LocaleCompare("style",option+1) == 0)
@@ -2930,7 +2932,8 @@
             if (*option == '+')
               threshold=(double) QuantumRange/2;
             else
-              threshold=StringToDoubleInterval(argv[i+1],QuantumRange);
+              threshold=StringToDoubleInterval(argv[i+1],(double) QuantumRange+
+                1.0);
             (void) BilevelImage(*image,threshold,exception);
             break;
           }
@@ -6247,7 +6250,8 @@
 
             limit=MagickResourceInfinity;
             if (LocaleCompare("unlimited",argv[i+1]) != 0)
-              limit=(MagickSizeType) StringToDoubleInterval(argv[i+1],100.0);
+              limit=(MagickSizeType) SiPrefixToDoubleInterval(argv[i+1],
+                100.0);
             (void) SetMagickResourceLimit(MemoryResource,limit);
             (void) SetMagickResourceLimit(MapResource,2*limit);
             break;
@@ -6653,7 +6657,8 @@
               MagickFalse,argv[i+1]);
             limit=MagickResourceInfinity;
             if (LocaleCompare("unlimited",argv[i+2]) != 0)
-              limit=(MagickSizeType) StringToDoubleInterval(argv[i+2],100.0);
+              limit=(MagickSizeType) SiPrefixToDoubleInterval(argv[i+2],
+                100.0);
             (void) SetMagickResourceLimit(type,limit);
             break;
           }