I'm trying to error check against being able to put in a value less than .3 and more than .4. I'm having some problems though. When I enter a value outside of this range, the program accepts it. Are the rules for comparisons different when dealing with decimal or have I done something else wrong?
Thanks,
Vireyda
Code:if(expenses[i].mileage_rate < 0.3 && expenses[i].mileage_rate > 0.4) printf("\nThat mileage rate does not fall between $0.30 and $0.40. Please try again.\n");