CROSSTABS: Use FORMAT setting to control output format.
[pspp] / src / language / stats / crosstabs.q
index 65e92091cda71760826a82c5bd36b46c5deaa2d3..67f585593950d3e39b6a457fede0da1a3499acee 100644 (file)
@@ -1519,14 +1519,13 @@ static void
 format_cell_entry (struct tab_table *table, int c, int r, double value,
                    char suffix, bool mark_missing, const struct dictionary *dict)
 {
-  const struct fmt_spec f = {FMT_F, 10, 1};
   union value v;
   char suffixes[3];
   int suffix_len;
   char *s;
 
   v.f = value;
-  s = data_out (&v, dict_get_encoding (dict), &f);
+  s = data_out (&v, dict_get_encoding (dict), settings_get_format ());
 
   suffix_len = 0;
   if (suffix != 0)