Term

Fixed point

Info

Originally written in French. Translated by AI — the meaning has been preserved, not the prose.

Short definition

Representing a real number as an integer multiplied by a fixed scale, in order to compute without floating-point numbers.

Synonyms and variants

Fixed-point arithmetic; virgule fixe (French).

Not to be confused with

  • floating point — a representation where each number carries its mantissa and exponent, costly without a coprocessor;
  • rounding — an occasional loss of precision, whereas fixed point sets the precision for the whole computation;
  • integer — fixed point uses integers, but gives them a unit other than 1.

Examples

$x^2 - y^2$ is computed as (x*x-y*y) div 2048 with coordinates scaled by 2048.

Ambiguities / debates

Choosing the scale is a trade-off between precision and overflow risk, and no single value settles it for every zoom.