On 2020-10-11, at 11:36:00, Andy Seaborne <[email protected]> wrote: > ... > The safest approach if you want xs:long is to cast: > > xsd:long(?age + "1"^^xsd:long) > > The text in the latest spec 3.1 is: > https://www.w3.org/TR/xpath-functions/#op.numeric > > I'd be interested in knowing what other systems do here.
in our case, all arithmetic operations involve compiled code, for which the native type promotion rules apply. as we do not attempt to track the argument type attributes, those rules carry through to the results. --- james anderson | [email protected] | http://dydra.com
