/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2013 Free Software Foundation
+ Copyright (C) 2013, 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
#include <config.h>
+#include <float.h>
#include <gtk/gtk.h>
#include "psppire-spreadsheet-model.h"
#include "data/spreadsheet-reader.h"
#include "data/casereader.h"
#include "data/case.h"
+#include "data/settings.h"
#include "libpspp/message.h"
+#include "libpspp/i18n.h"
+
#include "gl/xalloc.h"
const int width = caseproto_get_width (proto, i);
const union value *val = case_data_idx (c, i);
if (0 == width)
- printf ("%g ", val->f);
+ printf ("%.*g ", DBL_DIG + 1, val->f);
else
{
char *ss = xzalloc (width + 1);
GtkWidget *button;
struct xxx stuff;
+ i18n_init ();
+ settings_init ();
+
gtk_init (&argc, &argv);
if ( argc < 2)