docs: public static double toDouble(String s) {
  
          if ("+inf".equals(s) || "inf".equals(s)) {
              return Double.POSITIVE_INFINITY;
          }
  
          if ("-inf".equals(s)) {
              return Double.NEGATIVE_INFINITY;
          }
  
          return Double.parseDouble(s);
      }