I am attempting to convert a Float
to a double
but when I do the number is changing. I am having trouble understanding why because I thought doubles have higher precision than floats.
Float f = 111111111111f;
double d = f.doubleValue();
float ff = f.floatValue();
As seen in the above picture my Float
is set to 111111111111
then when I get the double value the number becomes 111111110656