How do you convert a string with integer contents, e.g. "123" to
integer or float??
Best Regards,
Michael Alexander
Doctoral Student at the University of Vienna
From: ········@unet.univie.ac.at ()
Newsgroups: comp.lang.lisp
Date: 15 Oct 1996 12:26:31 GMT
How do you convert a string with integer contents, e.g. "123" to
integer or float??
Here are some examples that you can followup on the net at
http://www.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html.
(parse-integer "123 456") => 123 3
(parse-integer "123 456" :start 3) => 456 7
(read-from-string "123 456") => 123 4
(read-from-string "1.23") => 1.23 4