I have a strange and unexpected problem with a comparison of two variables in my C code. The code is wrote using Keil for STM32F407 micro-controller. Please consider the following:
if ( f1 > u1 )
{
// do some ...
}
f1 is a float variable and u1 is an unsigned integer. In debug mode, f1=0.1 and u1=1600, but the if condition results true.
Can anybody solve the problem?