Jmol/SwingJS update. Includes new transpiler and runtime
[jalview.git] / srcjar / javajs / util / PT.java
index 81653cf..e50e558 100644 (file)
@@ -313,18 +313,18 @@ public class PT {
   }
 
   public static int parseIntRadix(String s, int i) throws NumberFormatException {
-    /**
-     * 
-     * JavaScript uses parseIntRadix
-     * 
-     * @j2sNative
-     * 
-     *    return Integer.parseIntRadix(s, i);
-     *    
-     */
-    {
+//    /**
+//     * 
+//     * JavaScript uses parseIntRadix
+//     * 
+//     * @j2sNative
+//     * 
+//     *    return Integer.parseIntRadix(s, i);
+//     *    
+//     */
+//    {
       return Integer.parseInt(s, i);
-    }
+//    }
   }
 
   public static String[] getTokens(String line) {
@@ -991,10 +991,11 @@ public class PT {
    */
   public static String escF(float f) {
     String sf = "" + f;
+    // NaN, Infinity
     /**
      * @j2sNative
      * 
-     * if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0)
+     * if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0 && sf.indexOf("N") < 0 && sf.indexOf("n") < 0)
      *   sf += ".0";
      */
     {