diff --git a/coders/mtv.c b/coders/mtv.c
index a9e3cff..72a2909 100644
--- a/coders/mtv.c
+++ b/coders/mtv.c
@@ -369,8 +369,8 @@
     /*
       Initialize raster file header.
     */
-    (void) FormatMagickString(buffer,MaxTextExtent,"%lu %lu\n",
-      (unsigned long) image->columns,(unsigned long) image->rows);
+    (void) FormatMagickString(buffer,MaxTextExtent,"%.20g %.20g\n",(double)
+      image->columns,(double) image->rows);
     (void) WriteBlobString(image,buffer);
     for (y=0; y < (ssize_t) image->rows; y++)
     {