Subject: Re: Converting String to Float
From: Erik Naggum <clerik@naggum.no>
Date: 1997/12/17
Newsgroups: comp.lang.lisp
Message-ID: <3091372829795360@naggum.no>


* Ray Drew
| Is there a float equivalent to parse-integer? I can't find any reference to
| one but thought I'd check before writing my own.

I'd recommend implementing your own based on `read-from-string'.

unfortunately, there's no hook (standard or otherwise, to my knowledge)
into the decision process after a string of characters has been read as a
token (of constituent characters), so it's hard to bail out before it is
interpreted as a symbol if it is not a number, so you might want to check
the set of characters that this string consists of before you call
`read-from-string'.

#\Erik
-- 
If you think this year is number 97,  |  Help fight MULE in GNU Emacs 20!
_you_ are not "Year 2000 Compliant".  |  http://sourcery.naggum.no/emacs/