Date: Sun, 20 Sep 1998 12:49:52 +0300 (IDT) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: Printing very small negative FP numbers Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk The current version of *printf always removes the sign from the printed representation of small FP numbers that are printed as 0.000 etc. (i.e., no significant digits, only zeros). This is done on purpose, since a poll here some time ago indicated that people don't like to see -0.0000 in the print-out. (Linux *does* print the minus sign, as do some, but not all, other platforms.) The question is: what do we print if the user asked for the sign explicitly, like in "%+f"? It would seem to me that in this case we *should* print the true sign of the number, even if the value is printed as all-zeros. Currently, such numbers are always printed as +0.00000 which could be interpreted as a lie, IMHO. It doesn't seem too hard to fix this, if people think this should be fixed. Comments?