Possible Duplicate:
Java: Calculations returning wrong answer?
Please explane why following program not giving correct output.
class Test
{
public static void main(String aa[])
{
float a=16.15 f;
float b =10.0f;
float c =a-b;
System.out.println(c);
}
}
/****************/ Out Put:-6.1499996