Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fast string to int conversion?

3 views
Skip to first unread message

Jonathan

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
Hi,

What's the fastest way to convert from a string variable to a number
(integer)? Is there anything faster/better than read-from-string?

Thanks,
Jonathan

Russell Senior

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
>>>>> "Jonathan" == Jonathan <n...@spam.com> writes:

Jonathan> Hi, What's the fastest way to convert from a string variable
Jonathan> to a number (integer)? Is there anything faster/better than
Jonathan> read-from-string?

Take a look at parse-integer.

--
Russell Senior ``The two chiefs turned to each other.
sen...@aracnet.com Bellison uncorked a flood of horrible
profanity, which, translated meant, `This is
extremely unusual.' ''

Erann Gat

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
parse-integer

E.

In article <MGm8ODoMLbjFsb=FpQdRI...@4ax.com>, Jonathan <n...@spam.com> wrote:

> Hi,
>
> What's the fastest way to convert from a string variable to a number
> (integer)? Is there anything faster/better than read-from-string?
>
> Thanks,
> Jonathan

R. Matthew Emerson

unread,
Mar 1, 2000, 3:00:00 AM3/1/00
to
Jonathan <n...@spam.com> writes:

> What's the fastest way to convert from a string variable to a number
> (integer)? Is there anything faster/better than read-from-string?

Look up PARSE-INTEGER in your favorite CL reference materials.

[Please be courteous and supply a legitimate e-mail address. I'd much
rather have sent mail, rather than bothering the entire net with this
reply.

Future posters please take note.]

-matt


0 new messages