I finally got my infinitely zooming grid to work and tried out how much I can zoom. Everything worked fine until around 15,000,000,000,000x magnification where it got jerky and didn't move right anymore so I figured I had hit the limit of precision of whatever variable type its using. Then I tried zooming out and expected a similar limit but 5 minutes later, at magnification of 0.00000-insert 100 zeros here-0014829095701452545 it was still doing great. If 1 was 1m then that in relation would be Planck length inside a Planck length inside a Planck length. Crazy!
So not really a problem question but a curiosity one - What kind of types does javascript use for floats? and why is it capable of using much longer tiny numbers than big numbers?