Why a floating type variable with a value of 0.7 ... when subjecting it to the following condition: (if a < 0.7) ... expecting that if it is less, the word "yes" will be printed and if it is not, print the word "no"? The image exceeds 2mb. But the result of running the program is "Yes."
Code (java)
public comp ()
{
float a = 0.7f;
if (a < 0.7)
System.out.println("Si");
else
System.out.println("No");
}