The value of january13.overtime_hours
is 0.000000
(it's a float)
Can someone please explain to me why the code below still executes the code inside the if statement? However if I try to put ==
instead of ">" it doesn't execute.
printf("%f", january13.overtime_hours);
if (january13.overtime_hours > 0.0)
{
overtime_paycheck = ( january13.overtime_rate *
january13.overtime_hours);
printf("Overtime Pay: %.2f\n", overtime_paycheck);
}