From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,eed1c7bcf4be8a14,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,4009e96fb587a400 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,cf96a3853c64280c X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1990-06-22 10:54:55 PST Path: gmdzi!unido!mcsun!uunet!samsung!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!davis From: davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis") Newsgroups: comp.lang.c,comp.os.vms,comp.sys.dec Subject: major bug in VAX C ??? (or is it me) Message-ID: Date: 21 Jun 90 21:06:33 GMT Sender: news@pacific.mps.ohio-state.edu Reply-To: davis@pacific.mps.ohio-state.edu (John E. Davis) Followup-To: comp.lang.c Organization: "Dept. of Physics, The Ohio State University" Xref: gmdzi comp.lang.c:26306 comp.os.vms:25169 comp.sys.dec:2575 Posted: Thu Jun 21 22:06:33 1990 Hi, When I compile, link, and run (with no errors) the following program on a VAX 8650 running VMS 5.2 : #include #include 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