gammeltoft
11-05-2002, 12:13 AM
Looking for a way to convert a string to a number in a Onespace macro.
By using some command like string-to-number in ME10.
I have a comma-separated file containing:
an x-coordinate
an y-coordinate
and finally an angle (rad).
Like this:
0.12345,0.67685,0.0345
0.12456,0.68745,0.0445
0.12567,0.69984,0.0545
and so on....
I read in the values opening the file and thereafter
uses (read-line file-stream nil 'eof).
All of the values are read into variables but as strings.
Does anyone have some ideas to solve this problem?
Is it possible to read in the values directely in numeric format or
is it possible to convert them later on like in ME10?
Kind Regards
Henrik Gammeltoft
By using some command like string-to-number in ME10.
I have a comma-separated file containing:
an x-coordinate
an y-coordinate
and finally an angle (rad).
Like this:
0.12345,0.67685,0.0345
0.12456,0.68745,0.0445
0.12567,0.69984,0.0545
and so on....
I read in the values opening the file and thereafter
uses (read-line file-stream nil 'eof).
All of the values are read into variables but as strings.
Does anyone have some ideas to solve this problem?
Is it possible to read in the values directely in numeric format or
is it possible to convert them later on like in ME10?
Kind Regards
Henrik Gammeltoft