Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!munnari.oz.au!yoyo.aarnet.edu.au!research!mgjmw From: mgjmw@research.cc.flinders.oz (Jon Whellams) Newsgroups: comp.lang.c Subject: Re: Convert char to float Keywords: float, char Message-ID: <575@research.cc.flinders.oz> Date: 21 Dec 90 05:41:16 GMT References: <5051@gara.une.oz.au> Organization: Geophysics, Flinders University, S.A., Australia Lines: 5 In article <5051@gara.une.oz.au> swijaya@gara.une.oz.au (Sastra Wijaya STMA) writes: >I need to know how to convert a char variable into a float. The problem Look up atof()..this will convert a string to a double Under MSC you'll have to #include "stdlib.h"