I need to round to the next biggest magnitude. So 6.66 rounds to 7, but -6.66 rounds to -7.
At the moment I'm doing:
int result = Math.Ceil(num);
if(num < 0)
result -= 1;
I'm in the middle of a 2k*2k*2k nested loop, so saving an if/subtract could really help.