TeX’s max_dimen (tex.web §421: 2^30 − 1 sp = 16383.99998pt), the bound
arith_error clamps a scanned dimension to (“Dimension too large”, §460).
LaTeXML keeps i64 headroom above it for pgf/tikz intermediates, so the
clamp fires only where the value would not even fit an i64 — the
pathology that wrapped to garbage (chinesechess.sty:2016-2020’s
\coffin_scale:cnn{\dim_ratio:nn{…}{0}}, batch 56bq).
A product that left the i64 range (an infinite or saturated f64→i64
cast): TeX’s arith_error (“Arithmetic overflow”, tex.web §105-108) clamps
to ±ceiling — MAX_DIMEN for a dimension, MAX_INTEGER for a count —
never a wrapped value. An Error, as TeX’s (OXIDIZED_DESIGN #519); no Err
channel here, so the cap latches as emit_error does.
A Warning in a box measured by our approximation (approximated_measure).
<factor><dimen> as TeX’s scan_dimen multiplies them (tex.web §455): nx_plus_y(n, x, xn_over_d(x, f, 2^16))
for the factor n + f/2^16 (factor in scaled points), its sign attached after (§448). Not clamped: an overflow
past max_dimen is the caller’s to report (§461).