- Subject: Re: what's integer() return for non integer string
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Sat, 5 May 2007 18:07:50 -0400
Lechee.Lai@xxxxxxxxxxxx <Lechee.Lai@xxxxxxxxxxxx> wrote:
> any method prevent integer("hello") return "Only digits may appear in an =
>octal or decimal number"=20
> is it possible return zero for "hello"
> or any good way check string is non digits first=20
Try atoi. See also _slang_guess_type.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]