projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change many %g format specifiers to %.*g with precision DBL_DIG + 1.
[pspp]
/
src
/
math
/
categoricals.c
diff --git
a/src/math/categoricals.c
b/src/math/categoricals.c
index d89dfdbb26b2c583513ff6d266ca4f2ac2e5a032..b1afd11c8ca4db16b549782a6f6b7fee6af95ca9 100644
(file)
--- a/
src/math/categoricals.c
+++ b/
src/math/categoricals.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* 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
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 "math/categoricals.h"
#include "math/interaction.h"
+#include <float.h>
#include <stdio.h>
#include "data/case.h"
#include <stdio.h>
#include "data/case.h"
@@
-252,7
+253,7
@@
categoricals_dump (const struct categoricals *cat)
assert (vn->var == var);
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 (", ");
}
if (vv < iact->n_vars - 1)
printf (", ");
}