Revision: 20763
          http://sourceforge.net/p/jmol/code/20763
Author:   hansonr
Date:     2015-09-09 03:54:37 +0000 (Wed, 09 Sep 2015)
Log Message:
-----------


Modified Paths:
--------------
    trunk/Jmol/src/javajs/util/JSJSONParser.java

Modified: trunk/Jmol/src/javajs/util/JSJSONParser.java
===================================================================
--- trunk/Jmol/src/javajs/util/JSJSONParser.java        2015-09-09 03:47:58 UTC 
(rev 20762)
+++ trunk/Jmol/src/javajs/util/JSJSONParser.java        2015-09-09 03:54:37 UTC 
(rev 20763)
@@ -47,7 +47,7 @@
   }
   
   /**
-   * Could return Integer, Double, Boolean, String, Map<String, Object>, 
Lst<Object>, or null
+   * Could return Integer, Float, Boolean, String, Map<String, Object>, 
Lst<Object>, or null
    * 
    * @param str
    * @return a object equivalent to the JSON string str
@@ -92,7 +92,7 @@
    * 
    * Integer
    * 
-   * Double
+   * Float
    * 
    * "quoted string"
    * 
@@ -159,7 +159,8 @@
             && string.indexOf('E') < 0)
           return new Integer(string);
         // not allowing infinity or NaN
-        Double d = Double.valueOf(string);
+        // using float here because Jmol does not use Double
+        Float d = Float.valueOf(string);
         if (!d.isInfinite() && !d.isNaN())
           return d;
       } catch (Exception e) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to