Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!rutgers!bellcore!faline!thumper!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.unix.aux Subject: Re: Printf Core Dumps on A/UX Message-ID: <8686@alice.UUCP> Date: 6 Jan 89 16:21:47 GMT References: <3568@emory.uucp> Reply-To: debra@alice.UUCP () Organization: AT&T, Bell Labs Lines: 22 In article <3568@emory.uucp> km@emory.uucp (Ken Mandelberg) writes: }I consider this a bug: } }The printf on A/UX will core dump with a floating point }exception on extreme data. For example: } } printf("%g\n", 0x7fffffff); } }will core dump on A/UX. On our BSD and other USG systems, this }prints "NaN", or some appropriate value (depending on the type }of internal floating point format). I don't consider this a bug. %g expects a double, i.e. 64 bits and you only give it an int, i.e. 32 bits. But maybe you have other examples... Paul. -- ------------------------------------------------------ |debra@research.att.com | uunet!research!debra | ------------------------------------------------------