Bug 56 - printf() and friends convert e-type conversions incorrectly
Summary: printf() and friends convert e-type conversions incorrectly
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 2.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-12-14 22:10 UTC by Robert Withrow
Modified: 2019-03-11 14:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Withrow 1994-12-14 22:10:00 UTC
    Printf prints the wrong output in the program below.

How-To-Repeat: 
#include <stdio.h>

main()
{
  printf("%.4e %.4f %.4g\n",0.0,0.0,0.0);
}

prints:
  0e+00 0.0000 0

Should print:

  0.0000e+00 0.0000 0

There are lots of other errors of this kind.  For more examples
build and run the TCL 7.3 tests.
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1995-03-11 07:13:36 UTC
State Changed
From-To: open->closed

Fixed in revision 1.2 of vfprintf.c.
Comment 2 Zarato 2019-03-11 14:07:33 UTC
MARKED AS SPAM