Two robot points can have different intended positions and still become identical numbers after conversion to a limited-precision storage format. The effect is especially easy to overlook when a small local movement is added to a large global coordinate. Printing more decimal places afterward does not recover the lost difference.

The issue is numerical representation. It is separate from sensor accuracy, coordinate-frame correctness, and whether a robot physically reached a target. A perfectly defined coordinate convention still needs a representation capable of retaining the differences the application uses.

A large coordinate and a small change

Consider an original hypothetical one-dimensional example in meters. Point A has coordinate 1,000,000.000. Point B has coordinate 1,000,000.020. Their intended separation is 0.020 meter, or 20 millimeters.

Assume both values are converted to IEEE 754 binary32, commonly associated with float32, using round-to-nearest behavior. This article's exact numerical results depend on that stated format and rounding assumption. They are not measurements from a robot or claims about every numeric type.

Near this magnitude, neighboring representable binary32 values are separated by 0.0625 meter, or 62.5 millimeters. The next value above 1,000,000 is 1,000,000.0625.

Point B is closer to 1,000,000 than to that next value. Consequently, both intended coordinates become the same stored value: 1,000,000. Their difference after this conversion is zero.

Where the spacing comes from

NumPy's scalar documentation describes float32 with one sign bit, eight exponent bits, and 23 explicitly stored mantissa bits. For normalized IEEE binary32 numbers, the implicit leading bit gives 24 significant binary digits.

Within the positive interval from 2 to the power 19 up to, but not including, 2 to the power 20, the spacing is 2 to the power (19 - 23). That equals 1/16, or 0.0625.

The example's 1,000,000 lies in this interval because 2 to the power 19 is 524,288 and 2 to the power 20 is 1,048,576. The spacing calculation is therefore tied to the coordinate's magnitude, not to the sensor's nominal resolution.

This does not mean every value has a 62.5-millimeter spacing. At 1.0 meter, the next larger binary32 value is separated by 2 to the power -23 meter, approximately 0.119 micrometer. The storage format distributes representable values over a wide range instead of maintaining one fixed absolute increment.

Epsilon needs a reference point

NumPy's finfo reference defines epsilon using the difference between 1.0 and the next larger representable value. That definition is a useful reminder that a small epsilon is not a universal distance resolution in meters.

Multiplying a decimal-coordinate magnitude by a relative-precision figure can give intuition, but the exact spacing follows the binary exponent interval. Around powers of two, the interval changes. An error budget that needs an exact representable gap should evaluate the relevant magnitude and data type.

Likewise, displaying six digits after a decimal point says nothing about how many distinct values were retained. Formatting can add zeros or show a rounded decimal representation of one existing binary number. It cannot create additional independent position information.

Moving the origin before losing the difference

Suppose the hypothetical system preserves the original values in a sufficiently precise upstream representation. It subtracts an origin of 1,000,000 meters before converting the local coordinates to binary32.

The local intended values are then zero and 0.020 meter. Binary32 does not represent the decimal fraction 0.020 exactly, but its stored approximation remains distinct from zero and close to the intended 20-millimeter offset.

Contrast that with subtracting the origin after the two large coordinates have already been converted. Both stored values are 1,000,000, so subtracting the same origin produces zero for both. The earlier distinction is gone.

The ordering is the lesson: translating sufficiently precise data and translating already collapsed data are different operations. Changing a display origin late in a pipeline may improve how a scene looks without recovering information lost at an earlier conversion.

A nearby origin still needs an identity

ROS REP 103 recommends choosing a nearby origin to avoid precision problems with large float32 values. The official source used here is a historical convention document in an archived repository. The recommendation does not imply that every ROS field or application uses float32.

For a local coordinate to remain meaningful, its origin, axes, units, and relationship to other frames must accompany its interpretation. Giving two teams small local numbers without agreeing on those references can preserve numerical detail while creating a different integration error.

Moving an origin also changes the coordinate description. It does not physically improve a sensor, correct a calibration, or establish a robot's positioning accuracy. Those claims require their own evidence.

Follow the earliest narrowing conversion

In a hypothetical processing chain, an upstream estimator might preserve detailed global coordinates while a later message, graphics buffer, or file stores them with fewer significant bits. The critical loss can occur at that boundary even if subsequent software uses a wider type.

Widening two identical stored numbers preserves their equality. It cannot determine which original positions produced them. A downstream subtraction or transform therefore needs to be interpreted using the precision that survived upstream.

The example's two points are deliberately simple. They show a reproducible information loss without needing a particular robot product. A useful numerical account names the units, coordinate magnitude, storage format, rounding behavior, and point at which conversion occurs. Those details explain whether a small difference was retained before the application asks what that difference means physically.

Image note: The accompanying site-library robot and computer scene is a concept illustration of numerical processing. It is not a map accuracy test, a captured coordinate buffer, or evidence of a measured positioning error.

Sources and further reading

ROS REP 103, Standard Units of Measure and Coordinate Conventions, official historical source:

https://github.com/ros-infrastructure/rep/blob/master/rep-0103.rst

NumPy, Scalars, float32 description:

https://numpy.org/doc/stable/reference/arrays.scalars.html

NumPy, finfo reference:

https://numpy.org/doc/stable/reference/generated/numpy.finfo.html

Sources checked October 23, 2026. Coordinate values, binary-spacing derivation, conversion comparison, and interpretation are original ZHILIANHAI editorial analysis.