www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000129

When Created: 12/27/1996 14:24:40
Against DJGPP version: 2.00
By whom: cisba@sli2.starlink.it
Abstract: cout.form have a problem with dobles (DOS version only)
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.)

Solution added: 04/12/1999 12:00:16
By whom: eliz@is.elta.co.il
Upgrade to v2.01.

Fixed in version on 04/12/1999 12:00:50
By whom: eliz@is.elta.co.il



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