home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
- From: probreak@matt.ksu.ksu.edu (James Michael Chacon)
- Newsgroups: comp.os.linux
- Subject: Re: Kernel FP Math bug?
- Date: 9 Jan 1993 20:50:19 -0600
- Organization: Kansas State University
- Lines: 23
- Message-ID: <1io2tbINNs3a@matt.ksu.ksu.edu>
- References: <1993Jan9.144510.9590@walter.cray.com>
- NNTP-Posting-Host: matt.ksu.ksu.edu
-
- rsocia@alberti.cray.com (Rick Socia) writes:
-
- >I compiled the following program:
-
- >main(int argc, char *argv)
- >{
- > double f;
-
- > f = atof(argv[1]);
- > printf("The answere is %f\n", f);
- >}
-
- >The core dumps. (passing an argument of "0.50").
-
- >Any ideas?
- >--
- >Rick Socia
-
- One problem with that code, if thats the EXACT code you compiled, is that
- argv is defined wrong. I compiled it with argv defined as char *argv[], and
- it works fine. Floating point works just fine as far as I have ever seen.
-
- James
-