def same_numeric
import bendvy-ecs-core@0.1.0.3/decode_data.bend as DecodeDataimport Base
103def same_numeric(a:Numeric,b:Numeric) -> Bool:
104 match a b:
105 case Finite{an,ah,al,ae} Finite{bn,bh,bl,be}: same_bool(an,bn) && U32.is_eq(ah,bh) && U32.is_eq(al,bl) && U32.is_eq(ae,be)
106 case Infinity{a} Infinity{b}: same_bool(a,b)
107 case NaN{} NaN{}: True{}
108 case _ _: False{}