home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!rpi!sarah!cook!karp.albany.edu!ganesh
- From: ganesh@cs.albany.edu (Ganesh Murugesan)
- Subject: Re: problems with atof()
- In-Reply-To: nilo@atdigarfield.cern.ch's message of Thu, 20 Aug 1992 12:52:52 GMT
- Message-ID: <GANESH.92Aug20121638@karp.albany.edu>
- Originator: ganesh@karp.albany.edu
- Sender: ganesh@cs.albany.edu (Ganesh Murugesan)
- Organization: Computer Science Department, SUNY at Albany, Albany, NY 12222
- References: <1992Aug20.125252.3451@dxcern.cern.ch>
- Date: Thu, 20 Aug 1992 17:16:37 GMT
- Lines: 18
-
- 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
- return value as int by default and hence returns a junk value.
-
- Also may be better to link the math libraary lm while compiling.
- It works if U do these.
-
- Ganesh
-
-