X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-binomial.c;h=8c91ca3e059ea587f2a80c2c3d5c4968b1106dd2;hb=a6f1c88d9d4dee24e1f79048c8a5d8274f68c405;hp=2641684c1ca762d85818cff1cc435ee54854bd06;hpb=681924fb9b8db641a6dc81abfac0a985799446da;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-binomial.c b/src/ui/gui/psppire-dialog-action-binomial.c index 2641684c1c..8c91ca3e05 100644 --- a/src/ui/gui/psppire-dialog-action-binomial.c +++ b/src/ui/gui/psppire-dialog-action-binomial.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2012 Free Software Foundation + Copyright (C) 2012, 2014 Free Software Foundation 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 @@ -20,6 +20,8 @@ #include "psppire-dialog-action-binomial.h" #include "psppire-value-entry.h" +#include + #include "dialog-common.h" #include "helper.h" #include @@ -141,7 +143,7 @@ generate_syntax (PsppireDialogAction *a) ds_init_cstr (&str, "NPAR TEST\n\t/BINOMIAL"); if ( get_proportion (scd, &prop)) - ds_put_c_format (&str, "(%g)", prop); + ds_put_c_format (&str, "(%.*g)", DBL_DIG + 1, prop); ds_put_cstr (&str, " =");