Article View: comp.os.msdos.programmer
Article #6131TC vs mainframe
From: Yijun Ding
Date: Mon, 13 May 1991 03:32
Date: Mon, 13 May 1991 03:32
13 lines
745 bytes
745 bytes
Recently I have a program with small floatings. I find something works
on my TC but not on mainframe. The following code, log10() print
correctly on TC2.0. It is HUGE on unix, and 0 on VMS in University of
Pittsburgh. That is a surprise.
#include <math.h>
main()
{
double a=1.12345e-40;
printf("%lf %lf\n", a, log10(a));
}
Any one can explain why?
Technical Details
Message-ID:
<127293@unix.cis.pitt.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!ydingShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!yding From: yding@unix.cis.pitt.edu (Yijun Ding ) Newsgroups: comp.os.msdos.programmer Subject: TC vs mainframe Keywords: tc Message-ID: <127293@unix.cis.pitt.edu> Date: 13 May 91 03:32:21 GMT Organization: Univ. of Pittsburgh, Computing & Information Services Lines: 13