Or, to test if the sign bit is set, you could just do
if (n < 0)
but maybe that wouldn't be so much fun!