[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] _ClipInt bug
7.clip(1, 5)
5
7.clip(1.01, 5.01)
7 // huh?
7.clip(1.01, 5)
7 // even if the relevant comparand is an Int, if the other is a float, you get a bad value
0.clip(1, 5.01)
0 // huh?
____________________________________
H. James Harkins /// dewdrop_world
http://www.duke.edu/~jharkins
"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly