return new BooleanValue(value != 0.0);
return (value == 0.0 && value == Double.NaN) ? BooleanValue.FALSE : BooleanValue.TRUE;
	public AtomicValue convertTo(int requiredType) throws XPathException {		switch(requiredType) {			case Type.ATOMIC:			case Type.ITEM:			case Type.NUMBER:			case Type.DECIMAL:			case Type.DOUBLE:				return this;			case Type.STRING:				return new StringValue(getStringValue());			case Type.INTEGER:				return new IntegerValue((long)value);			case Type.BOOLEAN:				return new BooleanValue(value != 0.0);			default:				throw new XPathException("cannot convert decimal value '" + value + "' into " + 					Type.getTypeName(requiredType));		}	}