Hello DFDL community, The below DFDL schema produces this error message:
[error] Parse Error: Non-terminating decimal expansion; no exact representable decimal result. (within Expression Evaluation Error: Non-terminating decimal expansion; no exact representable decimal result. What does that mean? Why am I getting it? How to fix it? /Roger <xs:element name="input"> <xs:complexType> <xs:sequence> <xs:element name="command-code" type="unsignedint3" /> <xs:element name="longitude"> <xs:complexType> <xs:sequence> <xs:element name="raw" type="unsignedint24" /> <xs:element name="degrees" type="xs:string" dfdl:inputValueCalc="{ if (../raw eq 0) then '0 degrees' else if (../raw lt 8388607) then fn:concat((../raw * 180 div 8388607), ' degrees east') else fn:concat('-',((../raw - 8388607) * 180 div 8388607), ' degrees west') }" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="area-code" type="unsignedint5" /> </xs:sequence> </xs:complexType> </xs:element>