Examine: Print extreme values using the print format of the variable
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 25 Mar 2012 21:30:26 +0000 (23:30 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 26 Mar 2012 09:30:44 +0000 (11:30 +0200)
src/language/stats/examine.c

index 45c64cbb5526bd17e9dfb349aa69215d14cd8ae2..88b3b542c8077594bdb059f8d334f100d6ef7600 100644 (file)
@@ -1169,13 +1169,12 @@ extremes_report (const struct examine *cmd, int iact_idx)
                             &F_8_0);
 
               tab_double (t,
-                          heading_columns + 1,
-                          heading_rows + v * rows_per_var + i * rows_per_cat + e,
-                          0,
-                          es->maxima[e].val,
-                          0);
-
-
+                         heading_columns + 1,
+                         heading_rows + v * rows_per_var + i * rows_per_cat + e,
+                         0,
+                         es->maxima[e].val,
+                         var_get_print_format (cmd->dep_vars[v]));
+                         
 
               tab_double (t,
                           heading_columns - 1,
@@ -1206,7 +1205,7 @@ extremes_report (const struct examine *cmd, int iact_idx)
                           heading_rows + v * rows_per_var + i * rows_per_cat + cmd->disp_extremes + e,
                           0,
                           es->minima[e].val,
-                          0);
+                          var_get_print_format (cmd->dep_vars[v]));
             }
         }
       free (prev_val);