MOO-cows Mailing List Archive

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

toint



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





Home | Subject Index | Thread Index