isNonNegative(x);
Return true if x is positive or zero, false otherwise.
Parameters:
x | Value to test condition |
---|
Returns:
true if x ≥ 0, false otherwise
Usage:
if(isNonNegative(x)){
// your code
}
Header:
#include "domain.h"