Revision: 20765
          http://sourceforge.net/p/jmol/code/20765
Author:   hansonr
Date:     2015-09-09 11:49:01 +0000 (Wed, 09 Sep 2015)
Log Message:
-----------
reconciling javajs.util with swingjs project; correcting exponential digits in 
%8.3e or %8.-3f

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

Modified: trunk/Jmol/src/javajs/util/PT.java
===================================================================
--- trunk/Jmol/src/javajs/util/PT.java  2015-09-09 11:34:26 UTC (rev 20764)
+++ trunk/Jmol/src/javajs/util/PT.java  2015-09-09 11:49:01 UTC (rev 20765)
@@ -1131,14 +1131,14 @@
           continue;
         }
         ich += len;
-        if (!Float.isNaN(floatT))
+        if (!Float.isNaN(floatT)) // 'f'
           strLabel += formatF(floatT, width, precision, alignLeft,
               zeroPad);
-        else if (strT != null)
+        else if (strT != null)  // 'd' 'i' or 's'
           strLabel += formatS(strT, width, precision, alignLeft,
               zeroPad);
-        else if (!Double.isNaN(doubleT))
-          strLabel += formatD(doubleT, width, precision, alignLeft,
+        else if (!Double.isNaN(doubleT)) // 'e'
+          strLabel += formatD(doubleT, width, precision - 1, alignLeft,
               zeroPad, true);
         if (doOne)
           break;

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