Wr005 — Floating-point format inconsistency within one file

§12.13 writer-pathology (sub-class: numeric formatting)

P3 — cosmetic / metadata-only

writer

Sources

Sender

Multi-source writer pipelines that compose entities from different subsystems (e.g. older Pro/E, multi-pass NX export)

Description

Floating-point values appear in three or more distinct formats within a single DATA section: `1.0E-7`, `1e-07`, `0.0000001`, and `1.0e-007` (extra exponent digit) all coexist. The spec permits any valid REAL formatting, so each value parses correctly, but tools that hash REAL streams to detect change disagree on equality, regex-based extractors fail, and human reviewers find the file unreadable. Bug-reporter language: "STEP file has weird number formatting", "every coordinate looks different", "scientific notation inconsistent".

Reproducer recipe

one CARTESIAN_POINT with coordinates `(1.0E-7, 1e-07, 0.0000001)` and a second with `(1.0e-007, 1.0, 1.)`.

Expected kernel behavior

Heal and accept: normalize / parse all valid REAL formats; coerce / canonicalise on re-emit if the kernel's policy is normalised output.

Notes

ISO 10303-21 §6 allows any of these forms; producer is sloppy but conforming.

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Wr005: mixed floating-point formats in one DATA section */
3HEADER;
4FILE_DESCRIPTION(('Wr005 - floating-point format inconsistency'),'2;1');
5FILE_NAME('Wr005.stp','2026-06-20T00:00:00',('auto-generated'),(''),
6  'auto-generated','','');
7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
8ENDSEC;
9DATA;
10/* Defect: coords use four different REAL formats in same file */
11/* Format 1: uppercase E with negative exponent: 1.0E-7 */
12/* Format 2: lowercase e with two-digit exponent: 1e-07 */
13/* Format 3: decimal expansion: 0.0000001 */
14#1=CARTESIAN_POINT('pt-a',(1.0E-7,1e-07,0.0000001));
15/* Format 4: extra exponent digit: 1.0e-007 */
16/* Format 5: plain decimal: 1.0 */
17/* Format 6: trailing-dot form: 1. */
18#2=CARTESIAN_POINT('pt-b',(1.0e-007,1.0,1.));
19#3=GEOMETRIC_CURVE_SET('fp-formats',(#1,#2));
20ENDSEC;
21END-ISO-10303-21;