delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/04/23/09:38:01

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1+87GlC3ti8SEzGGouLv0HrD1VMTHKLSqMBNmTMjM
noiQyGTk9E28ou
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Printing signed zeros and nans
Date: Wed, 23 Apr 2008 15:21:01 +0200
User-Agent: KMail/1.9.5
MIME-Version: 1.0
Message-Id: <200804231521.03091.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

The following line:
  printf("%f", -0.0);
produces on linux the following output:
  -0.000000
but with djgpp this one:
  0.000000
To get the same output, the djgpp line must look like this:
  printf("%+f", -0.0);
Is this intentional?

Regards,
Juan M. Guerrero

- Raw text -


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