int a = -1; unsigned int b = 3000000000; // 3 billion if ( long(a) > long(b)) { "true" >> cout } else { "false" >> cout };