Apologies for the poorly phrased title. I tried to do better, but perhaps someone can suggest a better title.
As a test case for another project, I'm working with the Mandelbrot set, using only value that can be properly represented, ie. n/2^k. (at least that's how I understand it) I'm trying to figure out how many iteration, will potentially hurt precision, but while I understand the gist of it, I never really did grasp how floating point values are represented in memory, not completely anyway, and the conclusion I've reached doesn't seem right.
For example, I've concluded that if any remotely reasonable resolution is to be achieved, for example 1025 by 1025, requiring steps of 1/2^8 through the range -2 to +2 on the x and y axis, the maximum number of iteration for each point, guaranteeing 100% precision, would be 16, using 128 bit floating point precision, and that's not even accounting for the sign bit or the fact that the values exceed 1.
So, what is it that I don't understand? Or in other words, how much precision is needed to represent n/2^k, given a boundary of -2 to +2? (I should probably use that as the title)
NB: If it matters at all, which it shouldn't, I'm working in C.