X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fcochran.c;h=869e5f5c8332759ede3a2fc602bac0150ff88ede;hb=14f4522a17db23e67a6fa17876633cc6260cb42b;hp=3ea8fd342b81fa45b71d78dbe03cf7200c0bbc3a;hpb=5f91f0868ec7cdbdb7900a2cb6e876b467fb2a6e;p=pspp diff --git a/src/language/stats/cochran.c b/src/language/stats/cochran.c index 3ea8fd342b..869e5f5c83 100644 --- a/src/language/stats/cochran.c +++ b/src/language/stats/cochran.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2010, 2011, 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 @@ -18,6 +18,7 @@ #include "language/stats/cochran.h" +#include #include #include @@ -169,8 +170,10 @@ show_freqs_box (const struct one_sample_test *ost, const struct cochran *ct) tab_joint_text (table, 1, 0, 2, 0, TAT_TITLE | TAB_CENTER, _("Value")); - tab_text_format (table, 1, 1, 0, _("Success (%g)"), ct->success); - tab_text_format (table, 2, 1, 0, _("Failure (%g)"), ct->failure); + tab_text_format (table, 1, 1, 0, _("Success (%.*g)"), + DBL_DIG + 1, ct->success); + tab_text_format (table, 2, 1, 0, _("Failure (%.*g)"), + DBL_DIG + 1, ct->failure); tab_hline (table, TAL_2, 0, tab_nc (table) - 1, column_headers); tab_vline (table, TAL_2, row_headers, 0, tab_nr (table) - 1);