step-examples/12-1a-encoding/Le048.stp
Sources
- 16-iso-spec ISO 10303-21 Ed.3 §6.4.5 (REAL has no infinity form)
Description
ISO 10303-21 REAL has no syntactic form for non-finite values (no `+Inf`, `-Inf`, `NaN`). Producers that internally hold IEEE-754 doubles and serialise via `printf %g` may emit `1.0E+999` (which on parse overflows to `+Inf`) or `1.0E-999` (which underflows to 0). A receiver must decide whether to reject, snap to a finite sentinel, or propagate the non-finite value through downstream computations.
Reproducer recipe
`CARTESIAN_POINT('overflow',(1.0E+999,0.0,0.0))`; `CARTESIAN_POINT('underflow',(1.0E-999,0.0,0.0))`.
Expected kernel behavior
detect overflow during literal-to-binary conversion and reject as out-of-range; do not let `+Inf` or `-Inf` enter the geometric pipeline.
Notes
**See also**: Le047. Synonyms: "REAL exceeds double range", "1.0E+999 overflows to inf", "STEP REAL underflows to zero", "STEP REAL emits +Inf", "non-finite REAL from overflow".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E+999') or contains(b'1.0E-999')matches(rb'1\.0E[+-]999')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Le048: REAL literal exceeding double range: overflow â +Inf / underflow â 0; ISO 10303-21 Ed.3 §6.4.5: REAL has no infinity form (no +Inf, -Inf, NaN); producers internally holding IEEE-754 doubles and serialising via printf %g may emit 1.0E+999 (overflows to +Inf on parse) or 1.0E-999 (underflows to 0 on parse); receiver must detect overflow during literal-to-binary conversion and reject; must not let +Inf or -Inf enter the geometric pipeline; defect 1: CARTESIAN_POINT with X=1.0E+999 (overflows to IEEE-754 +Inf); defect 2: CARTESIAN_POINT with X=1.0E-999 (underflows to 0); GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le048'),'2;1'); 5FILE_NAME('Le048.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#8998=CARTESIAN_POINT('overflow',(1.0E+999,0.0,0.0)); 12#8999=CARTESIAN_POINT('underflow',(1.0E-999,0.0,0.0)); 13 14ENDSEC; 15END-ISO-10303-21;