home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!gatech!hubcap!mjs
- From: mjs@hubcap.clemson.edu (M. J. Saltzman)
- Subject: Re: problems with atof()
- Message-ID: <1992Aug20.180645.13670@hubcap.clemson.edu>
- Organization: Clemson University, Clemson SC
- References: <1992Aug20.125252.3451@dxcern.cern.ch> <GANESH.92Aug20121638@karp.albany.edu>
- Date: Thu, 20 Aug 1992 18:06:45 GMT
- Lines: 31
-
- In article <GANESH.92Aug20121638@karp.albany.edu> ganesh@cs.albany.edu (Ganesh Murugesan) writes:
- >In article <1992Aug20.125252.3451@dxcern.cern.ch> nilo@atdigarfield.cern.ch (Operator) writes:
- >
- >> Hello!
- >>
- >> I have a problem withe the atof() function, you know string to double
- >> conversion.
- >> I can not figure out where the error is, so any help will be really really appreciated.
- >>
- >
- >
- >Include <math.h> and it will work. Else C compiler takes atof
- ^^^^^^^^
- Umm, isn't that supposed to be <stdlib.h>?
-
- >return value as int by default and hence returns a junk value.
- >
- >Also may be better to link the math libraary lm while compiling.
-
- I don't think this is necessary.
-
- >It works if U do these.
- >
- >Ganesh
- >
-
-
- --
- Matthew Saltzman
- Clemson University Math Sciences
- mjs@clemson.edu
-