From: Michael T H. <mic...@us...> - 2003-08-29 22:00:06
|
Update of /cvsroot/jmol/Jmol/src/org/openscience/jmol/viewer/protein In directory sc8-pr-cvs1:/tmp/cvs-serv20647/src/org/openscience/jmol/viewer/protein Modified Files: ProteinProp.java Log Message: converted viewer to use floats instead of doubles Index: ProteinProp.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/openscience/jmol/viewer/protein/ProteinProp.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ProteinProp.java 16 Aug 2003 14:50:44 -0000 1.1 +++ ProteinProp.java 29 Aug 2003 22:00:01 -0000 1.2 @@ -118,9 +118,9 @@ } public int getTemperature() { - double temp = 0; + float temp = 0; try { - temp = Double.valueOf(recordPdb.substring(60, 66).trim()).doubleValue(); + temp = Float.valueOf(recordPdb.substring(60, 66).trim()).floatValue(); } catch (NumberFormatException e) { System.out.println("temp is not a decimal:" + recordPdb); } |