isZeroOne

isZeroOne(X x);

Return true if x is an element of [0.0, 1.0], false otherwise.

Parameters:
xValue to test condition

Returns:
true if 0 ≤ x ≤ 1, false otherwise

Usage:
if(isZeroOne(x)){
// your code
}

Header:
#include "domain.h"