parsetoken(nn) does the trick. It converts nn from a string to a number.
Thanks
Daniel Lakeland wrote:
>On Thu, May 24, 2007 at 05:20:07PM -0500, Thomas Widlar wrote:
>
>
>
>>Another problem. I am using my readword() function to read numbers from
>>my bloated
>>test data file. It uses these commands,
>>
>> line: readline(f), words:split(line), nwords:length(words),
>>nlines:nlines+1;
>>
>>
>....
>
>
>>What do I have to do to the numbers I read in (evidently as strings) so they
>>can be used as numbers.
>>
>>
>>
>
>check out stringproc http://maxima.sourceforge.net/docs/manual/en/maxima_72.html#IDX2061
>
>I think you want map(parsetoken,words)... I also suspect that you
>could do all of this in a more functional style rather than writing
>loops, but it may be not worth it to you at the moment.
>
>
>
>