So I am currently making a mandelbrot programm and I noticed it kind of doesn’t zoom where I want. After a long search I found the source of the problem:
When giving it the place to zoom in it chnges the number when converting it to a double.
Here is a small programm to show the problem:
double test=(double)(-1.7448119236955923); println(test,test-(double)(-1.7448119236955923));
When using it it should show you a different version in the print field
here is my output
The difference between the numbers is 0,0000000311861319.
Why is this and how can I prevent it?