X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcategoricals.c;h=b1afd11c8ca4db16b549782a6f6b7fee6af95ca9;hb=14f4522a17db23e67a6fa17876633cc6260cb42b;hp=d89dfdbb26b2c583513ff6d266ca4f2ac2e5a032;hpb=5f91f0868ec7cdbdb7900a2cb6e876b467fb2a6e;p=pspp diff --git a/src/math/categoricals.c b/src/math/categoricals.c index d89dfdbb26..b1afd11c8c 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -1,5 +1,5 @@ /* 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 @@ -19,6 +19,7 @@ #include "math/categoricals.h" #include "math/interaction.h" +#include #include #include "data/case.h" @@ -252,7 +253,7 @@ categoricals_dump (const struct categoricals *cat) 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 (", "); }