This element declaration:

<xs:element name="Test" type="xs:string"
    dfdl:textNumberRep="standard"
    dfdl:textStandardBase="10"
    dfdl:textNumberRounding="explicit"
    dfdl:textNumberRoundingMode="roundHalfEven"
    dfdl:inputValueCalc="{ xs:string(202996 div 524287) }"
/>



produces this error message:



Non-terminating decimal expansion; no exact representable decimal result



I got the idea of using roundHalfEven from this Stack Overflow post:



https://stackoverflow.com/questions/4591206/arithmeticexception-non-terminating-decimal-expansion-no-exact-representable



How do I fix the error?


Reply via email to