[Prev][Next][Index][Thread]

# toint

- Date: Fri, 14 Feb 1997 01:18:12 PST
- From:
- Content-Type: TEXT/PLAIN; charset=US-ASCII

    Why is it, that

    toint("5")    => 5
    toint("+5)    => 5
    toint("-5")   => -5
    toint(" 5")   => 5
    toint("- 5")  => -5
    toint("-+5")  => -5
    toint("--5")  => 5

    but

    toint("+ 5")  => 0
    toint("+-5")  => 0
    toint("++5")  => 0
    toint("---5") => 0
    toint("-+ 5") => 0
    toint("-- 5") => 0

    ?

    Not that it matters that much, but it isn't very consistent...

    Tijmen (having nothing better to do with his time than typing some stupid
    little eval's...)

- Prev: this:secure_call_or_command...
- Next: TOY: setuid+pidfile.patch...
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index