[REBOL] Re: Testing if a string is an integer?
From: philb:upnaway at: 8-Dec-2000 22:46
Hi Matt, why can you use to-integer for example>> a: "1234567890"== "1234567890">> either error? try [to-integer a] [print "Not an integer"] [printInteger ] Integer>> a: "1234567890aaaaaa"== "1234567890aaaaaa">> either error? try [to-integer a] [print "Not an integer"] [printInteger ] Not an integer Cheers Phil