jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: what's integer() return for non integer string


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]