So I\'m just curious if there is a short hand statement to this:
if(number < 0 ) bigInt.sign = 0; else bigInt.sign = 1;
I see all th
Depending on how often you use this in your code you could consider the following:
macro
#define SIGN(x) ( (x) >= 0 )
Inline function
inline int sign(int x) { return x >= 0; }
Then you would just go:
bigInt.sign = sign(number);