# toint

Tijmen (tijmen@dse.nl)
Fri, 14 Feb 1997 01:18:12 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    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...)