Article View: comp.os.msdos.programmer
Article #6133Re: TC vs mainframe
From: RAMontante
Date: Mon, 13 May 1991 13:46
Date: Mon, 13 May 1991 13:46
13 lines
834 bytes
834 bytes
yding@unix.cis.pitt.edu (Yijun Ding ) <127293@unix.cis.pitt.edu> :
|
| #include <math.h>
| main()
| {
| double a=1.12345e-40;
| printf("%lf %lf\n", a, log10(a));
| }
The gcc compiler under unix warns that 1.12345e-40 exceeds the range of
'double'. It appears that the VAX compilers (gcc, cc, vcc) store doubles
in 32 bits, just like floats (legal C, but...). Turbo C stores doubles
in 64 bits.
Technical Details
Message-ID:
<1991May13.084642.1929@news.cs.indiana.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!rutgers!news.cs.indiana.edu!bobmon@iuvax.cs.indiana.eduReferences:
<127293@unix.cis.pitt.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!rutgers!news.cs.indiana.edu!bobmon@iuvax.cs.indiana.edu From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.os.msdos.programmer Subject: Re: TC vs mainframe Message-ID: <1991May13.084642.1929@news.cs.indiana.edu> Date: 13 May 91 13:46:31 GMT References: <127293@unix.cis.pitt.edu> Organization: 'twixt Dali and Dada Lines: 13