X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fselect-cases-dialog.c;h=2b4634808b31f8004707e8b0b844f93183fba83d;hb=14f4522a17db23e67a6fa17876633cc6260cb42b;hp=c3bc123c051f2fd42cc8a121ba316056ee148706;hpb=5f91f0868ec7cdbdb7900a2cb6e876b467fb2a6e;p=pspp diff --git a/src/ui/gui/select-cases-dialog.c b/src/ui/gui/select-cases-dialog.c index c3bc123c05..2b4634808b 100644 --- a/src/ui/gui/select-cases-dialog.c +++ b/src/ui/gui/select-cases-dialog.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2008, 2009, 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 @@ -17,6 +17,7 @@ #include #include "select-cases-dialog.h" +#include #include #include "executor.h" #include "psppire-dialog.h" @@ -388,9 +389,9 @@ generate_syntax_filter (const struct select_cases_dialog *scd) gtk_spin_button_get_value (GTK_SPIN_BUTTON (scd->spinbutton)); ds_put_c_format (&dss, - "COMPUTE %s = RV.UNIFORM (0,1) < %g.\n", + "COMPUTE %s = RV.UNIFORM (0,1) < %.*g.\n", filter, - percentage / 100.0 ); + DBL_DIG + 1, percentage / 100.0 ); } else {