On 09-Dec-00, Philip Bevan wrote:

> Hi Matt,

> why can you use to-integer

> for example

>>> a: "1234567890"
> == "1234567890"
>>> either error? try [to-integer a] [print "Not an integer"] [print
> "Integer"]
> Integer

That wouldn't work for decimals in the string as "123.7" would be
converted to an integer and returned as okay.

All I can think of is forall-ing through the string and checking every
character, but I'm sure there's a more simpler way in REBOL.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to