From b8ce6e3ee025d50cee0a9ccf332fa53145ecf65d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 27 Feb 1998 11:52:41 +0000 Subject: Update. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * misc/efgcvt_r.c (APPEND): Handle printing of 0.0 correctly. Reported by Göran Uddeborg . --- misc/efgcvt_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/efgcvt_r.c') diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c index 9e586e15a8..6434b9deea 100644 --- a/misc/efgcvt_r.c +++ b/misc/efgcvt_r.c @@ -106,7 +106,7 @@ APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len) ++i; while (i < n && !isdigit (buf[i])); - if (*decpt == 1 && buf[0] == '0') + if (*decpt == 1 && buf[0] == '0' && value != 0.0) { /* We must not have leading zeroes. Strip them all out and adjust *DECPT if necessary. */ -- cgit v1.2.3