MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
toint
-
Date: Fri, 14 Feb 1997 01:18:12 PST
-
From: Tijmen <tijmen@dse.nl>
-
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...)
Home |
Subject Index |
Thread Index