- tab_text (table, 0, 2 + v, TAT_NONE, var_to_string (vv[v]));
-
- tab_float (table, 1, 2 + v, TAT_NONE, desc[v].n, 8, 0);
- tab_float (table, 2, 2 + v, TAT_NONE, desc[v].mean, 8, 3);
- tab_float (table, 3, 2 + v, TAT_NONE, desc[v].std_dev, 8, 3);
- tab_float (table, 4, 2 + v, TAT_NONE, desc[v].min, 8, 3);
- tab_float (table, 5, 2 + v, TAT_NONE, desc[v].max, 8, 3);
+ const struct variable *var = vv[v];
+ const struct fmt_spec *fmt = var_get_print_format (var);
+
+ tab_text (table, 0, 2 + v, 0, var_to_string (var));
+
+ col = 1;
+ if (desc != NULL)
+ {
+ tab_double (table, col++, 2 + v, 0, desc[v].n, fmt);
+ tab_double (table, col++, 2 + v, 0, desc[v].mean, fmt);
+ tab_double (table, col++, 2 + v, 0, desc[v].std_dev, fmt);
+ tab_double (table, col++, 2 + v, 0, desc[v].min, fmt);
+ tab_double (table, col++, 2 + v, 0, desc[v].max, fmt);
+ }