| www.delorie.com/djgpp/bugs/show.cgi | search |
This is the program source:
--------
#include <fstream.h>
#include <stdio.h>
int main(void) {
long double pi = 3.14791843300216;
printf("%.14Lf\n",pi);
cout.form("%.14Lf\n",pi);
}
--------
and this is the strange output (compiled in DOS environment):
--------
3.14791843300216
-8383512472738002870998441900165772287613599744.00000000000000
--------
(On the linux box the output is correct.)Upgrade to v2.01.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2010 by DJ Delorie | Updated Jul 2010 |