AtomicType type0 = (AtomicType) itemType0.getPrimitiveItemType();
if (type0.getFingerprint() == StandardNames.XS_UNTYPED_ATOMIC) {
operand0 = new UntypedAtomicConverter(operand0, BuiltInAtomicType.DOUBLE, true);
type0 = BuiltInAtomicType.DOUBLE;
} else if (!(operand0 instanceof UntypedAtomicConverter) &&
th.relationship(type0, BuiltInAtomicType.UNTYPED_ATOMIC) != TypeHierarchy.DISJOINT) {
operand0 = new UntypedAtomicConverter(operand0, BuiltInAtomicType.DOUBLE, false);
type0 = (AtomicType)operand0.getItemType(th);
}
// System.err.println("First operand"); operand0.display(10);