From 80944f1949cd485fef6c77d9be08a8bb48d4a55e Mon Sep 17 00:00:00 2001 From: millert Date: Mon, 2 Dec 2002 15:38:54 +0000 Subject: Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code. --- lib/libc/stdlib/strtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib/strtod.c') diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c index ce7ce9fe562..17d26a1dc33 100644 --- a/lib/libc/stdlib/strtod.c +++ b/lib/libc/stdlib/strtod.c @@ -90,7 +90,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strtod.c,v 1.15 2002/02/19 19:39:37 millert Exp $"; +static char *rcsid = "$OpenBSD: strtod.c,v 1.16 2002/12/02 15:38:54 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ @@ -1992,7 +1992,7 @@ __dtoa *decpt = 9999; s = #ifdef IEEE_Arith - !word1(d) && !(word0(d) & 0xfffff) ? "Infinity" : + !word1(d) && !(word0(d) & 0xfffff) ? ndigits < 8 ? "Inf" : "Infinity" : #endif "NaN"; if (rve) -- cgit v1.2.3-59-g8ed1b