delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/01/08/02:08:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Samuel Lauber" <sam124 AT operamail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Strange problems with printf()
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <NsLDd.54447$nP1.27785@twister.socal.rr.com>
Date: Sat, 08 Jan 2005 06:54:37 GMT
NNTP-Posting-Host: 204.210.96.202
X-Complaints-To: abuse AT rr DOT com
X-Trace: twister.socal.rr.com 1105167277 204.210.96.202 (Fri, 07 Jan 2005 22:54:37 PST)
NNTP-Posting-Date: Fri, 07 Jan 2005 22:54:37 PST
Organization: RoadRunner - West
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I try to use
    printf("%f")
on any floating-point number except 0, and for some
crazy reason, it always says `Unnormal'. This is a testcase
that reproduces the problem:

int printf(char *, ...);
int main(void)
{
     printf("%f\n", 1);
}

Compile it, and it would say `Unnormal'. Is this a bug?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019