code: private static Object toNumber( String value)
      {
      Object number;
  
      try
        {
        number = toExternalNumber( new BigDecimal( value));
        }
      catch( Exception e)
        {
        number = null;
        }
  
      return number;
      }
docs: Returns the Number represented by the given string, or null if not a numeric value.