From: davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis")
Subject: major bug in VAX C ??? (or is it me)
Date: 21 Jun 90 21:06:33 GMT [thread overview]
Message-ID: <DAVIS.90Jun21170633@pacific.pacific.mps.ohio-state.edu> (raw)
Hi,
When I compile, link, and run (with no errors) the following program on a
VAX 8650 running VMS 5.2 :
#include <math.h>
#include <stdio.h>
main()
{
double x;
x=exp(1.0);
printf("e = exp(x) is %lf\n",x);
}
I get the resulting output:
e = exp(x) is 5025578.386454
However, on a sun4 I get the expected result.
What is wrong? It must be my fault because this is a MAJOR problem.
Thanks,
--
--John
bitnet: davis@ohstpy
internet: davis@pacific.mps.ohio-state.edu
next reply other threads:[~1990-06-21 21:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-06-21 21:06 "John E. Davis" [this message]
1990-06-21 22:08 ` major bug in VAX C ??? (or is it me) Stephen Tihor
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox