I usually write : if(a >= min && a <= max)//Just a general case
An another similar & popular case : if(a != 1 && a != 2 && a != 3...)
Now I can solve this problem by making a new definition : #define InRange(num,min,max)(num >= min && num <= max)
The code now is : if(InRange(a,min,max))//For all cases (float, double, int,...)