From ab40058bed4b91aa6f4b83c6439fd687ba60f4a5 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 23 Sep 2003 12:15:36 +0000 Subject: [PATCH] * Promoted precision in Float->String transformations. git-svn-id: svn://svn.zoy.org/elk/trunk@178 55e467fa-43c5-0310-a8a2-de718669efc6 --- src/math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math.c b/src/math.c index 31fd856..0609672 100644 --- a/src/math.c +++ b/src/math.c @@ -105,10 +105,10 @@ Object Fixnum_To_String (Object x, int radix) { } char *Flonum_To_String (Object x) { - static char buf[32]; + static char buf[64]; char *p; - sprintf (buf, "%.15g", FLONUM(x)->val); + sprintf (buf, "%.31g", FLONUM(x)->val); for (p = buf; *p; p++) if (*p == '.' || *p == 'e' || *p == 'N' || *p == 'i') return buf;