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