https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6527
Guy Harris <guy@xxxxxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #7352|review_for_checkin? |review_for_checkin-
Flag| |
--- Comment #6 from Guy Harris <guy@xxxxxxxxxxxx> 2011-10-31 14:05:51 PDT ---
(From update of attachment 7352)
I think you want "g", not "f":
$ cat float.c
#include <stdio.h>
int
main(void)
{
printf("%.15e\n", 1.5e-20);
printf("%.15f\n", 1.5e-20);
printf("%.15g\n", 1.5e-20);
return 0;
}
$ gcc float.c
$ a.out
1.500000000000000e-20
0.000000000000000
1.5e-20
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.