Le047 — REAL literal at IEEE-754 subnormal / minimum-normal / maximum boundaries

§12.1a encoding/strings (sub-class: numeric literal)

P1 — silent data loss

encoding

Sources

Description

ISO 10303-21 specifies REAL as a decimal floating-point representation but most implementations parse into IEEE-754 binary64. Inputs at the subnormal boundary (smallest positive subnormal ~4.94E-324; smallest positive normal ~2.225E-308; largest finite ~1.798E+308) test for two failure modes: readers that round to zero and silently drop the value, and readers that flag underflow and reject the file. A coordinate emitted at this magnitude often arises in BSpline weight values from buggy producers normalising weights through very small denominators.

Reproducer recipe

`CARTESIAN_POINT('subnormal',(4.9406564584124654E-324,0.0,0.0))`; also min-normal `2.2250738585072014E-308`, max-finite `1.7976931348623157E+308`, and negative zero `-0.0`.

Expected kernel behavior

Heal and accept: parse the value losslessly into the kernel's working numeric type; if the value is below the kernel's coordinate precision, snap to zero with a diagnostic rather than letting it propagate as silent NaN or Inf.

Notes

**See also**: Le048. Synonyms: "REAL at IEEE-754 subnormal", "smallest normal double in STEP", "max double 1.798E+308 in REAL", "subnormal value loses precision", "REAL at IEEE boundary". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Le048

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Le047: REAL literal at IEEE-754 subnormal / minimum-normal / maximum boundaries; ISO 10303-21 Ed.3 §6.4.5: REAL is decimal floating-point; most implementations parse into IEEE-754 binary64; subnormal: 4.9406564584124654E-324 (smallest positive subnormal double); min-normal: 2.2250738585072014E-308 (smallest positive normal double); max-finite: 1.7976931348623157E+308 (largest finite double); negative zero: -0.0 (IEEE-754 negative zero); failure mode 1: reader rounds subnormal to zero and silently drops the value; failure mode 2: reader flags underflow and rejects the file; A coordinate at this magnitude arises in BSpline weight values from buggy producers; heal and accept: parse value losslessly; snap below-precision values to zero with diagnostic; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le047'),'2;1');
5FILE_NAME('Le047.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#8996=CARTESIAN_POINT('subnormal',(4.9406564584124654E-324,0.0,0.0));
12#8997=CARTESIAN_POINT('min-normal',(2.2250738585072014E-308,0.0,0.0));
13#8998=CARTESIAN_POINT('max-finite',(1.7976931348623157E+308,0.0,0.0));
14#8999=CARTESIAN_POINT('negative-zero',(-0.0,0.0,0.0));
15
16ENDSEC;
17END-ISO-10303-21;