Quote:
Originally Posted by Tyhm
int (-1.5) returns -2, not -1.
This is, understandably, brutally murdering all my attempts to script.
|
int() rounds decimals
down, and thus -1.5 becomes -2 in the same way 1.5 would become 1. If it bothers you that much, you can always abs() it prior do the int().