I am implementing a trap point algorithm for fractals and facing a following problem:
In every iteration I get a float value between 0 and n, where n depends on the i