delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/01/13:25:00

Message-ID: <n1349640715.82117@jpl-335-server.jpl.nasa.gov>
Date: 1 May 1997 10:14:19 -0800
From: "Courtney Duncan" <Courtney.Duncan.JPL#u#335#u#QMAIL AT jpl-335-server DOT jpl DOT nasa DOT gov>
Subject: cout << (double)
To: "djgpp list" <djgpp AT delorie DOT com>
Mime-Version: 1.0

                       Subject:                               Time:09:59
  OFFICE MEMO          cout << (double)                       Date:5/1/97

Recalling the problem:

cout << (int) 4 << " " << (double) 4.5 << endl;

Gave

4 0.//////

when my program was compiled under gpp version 1.something and run 
on my 486SX.

The two pieces of advice were "try a different processor" (i.e., you need
to upgrade hardware) and "try upgrading to gpp version 2" (i.e., you need
to upgrade software).

These both worked.  I was mildly surprised.

go32 <myprog compiled under v1.something>

gives

4 4.5

on a Pentium (i.e., works fine)

and 

go32-v2 <myprog compiled under gpp version 2.something>

gives

4 4.5

on my 486SX.

Meanwhile, the mail system internal to my company got messed up, my
forwarding address was corrupted and I haven't gotten any mail from
djgpp list or anywhere else off lab in about a week, so I haven't
gotten any other advice that wasn't also copied directly to me.

Thanks anyway,

Courtney DOT Duncan AT Jpl DOT Nasa DOT Gov (or try n5bf AT amsat DOT org)

<this all reminds me of working with computers....>

- Raw text -


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