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
/
ui
/
gui
/
psppire-dialog-action-binomial.c
diff --git
a/src/ui/gui/psppire-dialog-action-binomial.c
b/src/ui/gui/psppire-dialog-action-binomial.c
index 019332eabad85ab651288a9443bdf26f04303bda..8c91ca3e059ea587f2a80c2c3d5c4968b1106dd2 100644
(file)
--- 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.
/* 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
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 "psppire-dialog-action-binomial.h"
#include "psppire-value-entry.h"
+#include <float.h>
+
#include "dialog-common.h"
#include "helper.h"
#include <ui/syntax-gen.h>
#include "dialog-common.h"
#include "helper.h"
#include <ui/syntax-gen.h>
@@
-27,7
+29,6
@@
#include "psppire-dialog.h"
#include "builder-wrapper.h"
#include "psppire-dialog.h"
#include "builder-wrapper.h"
-#include "checkbox-treeview.h"
#include "psppire-dict.h"
#include "libpspp/str.h"
#include "psppire-dict.h"
#include "libpspp/str.h"
@@
-142,7
+143,7
@@
generate_syntax (PsppireDialogAction *a)
ds_init_cstr (&str, "NPAR TEST\n\t/BINOMIAL");
if ( get_proportion (scd, &prop))
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, " =");
ds_put_cstr (&str, " =");