Quote Originally Posted by BleaS View Post
I had considered using -1, but that requires signed integers, aren't integers, by default, unsigned? (For that matter, I'm actually working with doubles, not integers).
Integers are signed unless you request otherwise using the "unsigned" keyword.

And there's no reason doubles can't be negative....