Re:Swedish Exchange paralyzed by buy order for "-6 stocks"
by ajuc on Thursday November 29, 2012 @06:57AM
(#4847245)
You should check before the operation that can produce result outside the valid range anyway.
Wrong example:
unsigned int z = x - y;
if (z > BIG_NUMBER) {
return false;
}
Good example: if (y > x) {
return false;
}
unsigned int z = x - y;
nanex