Ls004 — Fortran-style `D` exponent (`1.0D5`)

§12.1c numeric-literal grammar

P1 — silent data loss

syntax

Sources

Description

Some legacy Fortran-fronted exporters (older I-DEAS, CADAM converters) emit `1.0D5` instead of `1.0E5`. ISO 10303-21 only allows `E`/`e`.

Reproducer recipe

`#1=DIRECTION('',(1.0D5,0.,0.));`

Expected kernel behavior

Reject with diagnostic "exponent must be 'E', got 'D'".

Notes

**See also**: Ls001. Synonyms: "Fortran D exponent in STEP", "1.0D5 instead of 1.0E5", "legacy Fortran writer emits D exponent", "I-DEAS D-exponent REAL", "CADAM D-style exponent".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Ls001

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ls004: Fortran-style D exponent in REAL literal; some legacy Fortran-fronted exporters (older I-DEAS, CADAM converters) emit 1.0D5 instead of 1.0E5; ISO 10303-21 only allows E or e as the exponent indicator; defect: DIRECTION('',(1.0D5,0.,0.)) — D-exponent REAL in the first coordinate; also VECTOR magnitude uses 1.5D-3 (a second D-exponent variant); strict readers must reject with diagnostic 'exponent must be E, got D'; lenient mode must not silently accept — emit a warning at minimum; legacy Fortran writer emits D exponent; I-DEAS D-exponent REAL; CADAM D-style exponent; synonyms: Fortran D exponent in STEP, 1.0D5 instead of 1.0E5, legacy Fortran writer emits D exponent, I-DEAS D-exponent REAL, CADAM D-style exponent; GEOMETRIC_CURVE_SET IS NOT used — DIRECTION entity is the defect carrier */
3HEADER;
4FILE_DESCRIPTION(('Ls004'),'2;1');
5FILE_NAME('Ls004.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9/* Defect: Fortran-style D exponent — 1.0D5 instead of 1.0E5. */
10/* ISO 10303-21 §6.4: only E or e is permitted for the REAL exponent. */
11/* Legacy Fortran-fronted exporters (I-DEAS, CADAM) emit D-exponent. */
12#1=DIRECTION('',(1.0D5,0.,0.));
13#2=CARTESIAN_POINT('origin',(0.,0.,0.));
14#3=VECTOR('v',#1,1.5D-3);
15#4=LINE('l',#2,#3);
16ENDSEC;
17END-ISO-10303-21;