diff --git a/coders/miff.c b/coders/miff.c
index 15bcb02..2a068f1 100644
--- a/coders/miff.c
+++ b/coders/miff.c
@@ -747,7 +747,7 @@
               {
                 if (LocaleCompare(keyword,"gamma") == 0)
                   {
-                    image->gamma=LocaleToDouble(options,(char **) NULL);
+                    image->gamma=InterpretLocaleValue(options,(char **) NULL);
                     break;
                   }
                 if (LocaleCompare(keyword,"gravity") == 0)
@@ -1014,7 +1014,7 @@
               {
                 if (LocaleCompare(keyword,"version") == 0)
                   {
-                    version=LocaleToDouble(options,(char **) NULL);
+                    version=InterpretLocaleValue(options,(char **) NULL);
                     break;
                   }
                 (void) SetImageProperty(image,keyword,options);