code: public Number getNumber ()
      {
          String valstr = getText().length() == 0 ? "0" : getText();
          return _allowFloatingPoint ? (Number)(new Double(valstr)) : (Number)(new Long(valstr));
      }
docs: Get the numberic value of this box. Returns 0 if the box is empty.