Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!psuvax1!news From: flee@cs.psu.edu (Felix Lee) Newsgroups: comp.lang.perl Subject: Re: alpha numbers Message-ID: Date: 27 Jun 91 18:50:08 GMT References: <1991Jun23.200134.18835@pronto.mh.nl> <1991Jun24.231628.14446@jpl-devvax.jpl.nasa.gov> <1991Jun25.134732.1668@pronto.mh.nl> <3708@wn1.sci.kun.nl> <1991Jun27.082309.5793@pronto.mh.nl> Sender: news@cs.psu.edu (Usenet) Organization: Penn State Computer Science Lines: 7 Nntp-Posting-Host: dictionopolis.cs.psu.edu >In general, this would require an explicit syntax check before >calling atof on a string. You could use strtod() instead when converting numbers. Low overhead checking for properly formed numbers. -- Felix Lee flee@cs.psu.edu