/* PSPP - a program for statistical analysis.
- Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010, 2011, 2012, 2014 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "math/categoricals.h"
#include "math/interaction.h"
+#include <float.h>
#include <stdio.h>
#include "data/case.h"
}
printf ("\n");
- printf ("Number of interactions %d\n", cat->n_iap);
+ printf ("Number of interactions %zu\n", cat->n_iap);
for (i = 0 ; i < cat->n_iap; ++i)
{
int v;
assert (vn->var == var);
- printf ("%g(%d)", val->f, valn->index);
+ printf ("%.*g(%d)", DBL_DIG + 1, val->f, valn->index);
if (vv < iact->n_vars - 1)
printf (", ");
}