Use new Gnulib function dtoastr() to format short, accurate real numbers.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 14 Feb 2011 06:20:45 +0000 (22:20 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 15 Feb 2011 21:11:15 +0000 (13:11 -0800)
commitdba1133f9a29a8a8f806a824e884f99136ceb9fc
tree505acf2addabb68b92fcd1d4e9ab580ece81e902
parent18e0d701a5e9a288604a408100efcf1463b6da9c
Use new Gnulib function dtoastr() to format short, accurate real numbers.

%.*g with DBL_DIG + 1 as argument is simple but in rare cases it fails to
accurately format a real number.  The recently added Gnulib routine
dtoastr() always formats a real number accurately, so switch to using it
for these cases.
Smake
src/data/csv-file-writer.c
src/ui/syntax-gen.c