Originally written in French. Translated by AI — the meaning has been preserved, not the prose.
Main idea
Turbo Pascal's 32-bit integers overflow without error: the value wraps around modulo $2^{32}$. In some demo formulas, this wraparound is visible. When a fractal's escape test uses an escape measure that can become negative, such as $X^2 - 16Y^2$, the orbit is never stopped, the value exceeds $2^{31}$ within a few iterations and wraps around: the image is no longer a fractal but a pattern of arithmetic chaos.
Porting such a program to JavaScript, where numbers are 64-bit floats, only gives the same image if you enforce the same wraparound — Math.imul and |0. The same goes for 16-bit variables (Integer, Word) that wrap around at $\pm 32\,768$ or at 65,535 in other formulas.
Why it matters
A port that is "correct" in the mathematical sense can be unfaithful to the work: what you would take for a bug to fix is part of the result. Preserving a code archive means reproducing the machine, not just the intent.
Nuances and limits
When the overflow never happens, as with the usual escape measure $X^2 + Y^2$, enforcing it changes nothing. The faithfulness work concentrates on the formulas where it does happen.
Open questions
- How should a legacy code archive document the machine behaviors the result depends on?