Re: Re:

new topic     » goto parent     » topic index » view thread      » older message » newer message

> > > Is there a core function to return a number from a sequence of atoms 
> > > representing the ASCII codes of numbers?
> > > 
> > > eg.  need to get y = 205 number
> > > 
> > > sequence xx
> > >   xx = {50,48,53}   -- 2,0,5 in ASCII

oops. just realized what you wanted. heh. <cough>

the function is value(). look it up in the manual.

-- convert a sequence to a number
object junk
sequence x
atom y

x = {50,48,53}
junk = value(x)
y = junk[2]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu