Hi,
I want to put a float value to double variable.
float f = 1.0000345f;
double d = f;
System.out.println("float " + f);//Prints 1.0000345
System.out.println("double " + d);//Prints 1.0000344514846802
Why does the double variable contains a different value.
Is there a way to overcome this issue.
Thanks,
Chamal.