I have read this - Why Are Floating Point Numbers Inaccurate?
So, sometimes precision can be changed in floating point number because of its representation style (scientific notation with an exponent and a mantissa).
But if I cast an integer value to double, is there any chance to change the precision of double slightly in Java?
I mean,
int i = 3;
double d = (double) i;
System.out.println(d);
the output I got 3.0
as I expected.
but, is there any chance of being precision changed like 3.000001
because of representation style of double in Java?