I am writing a Mandelbrot viewer. Everything works except when you get to a very high zoom the image starts to pixilate about at about zoom 10^(-14). I am guessing because i run out of memory in my double vars. What can i use that will allow me to use very small numbers?
I need to use the java.lang.Math class and i dont think that supports bigdecimal
If you really need arbitrary precision, your best option is probably BigDecimal
.
If you're concerned with efficiency, I suspect you would be better off trying to scale your values and keep them in the neighborhood of 1.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With