code: public double num()
    {
  
      int node = item(0);
      return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN;
    }
docs: Cast result object to a number.
  
  @return numeric value of the string conversion from the
  next node in the NodeSetDTM, or NAN if no node was found