|
[HepData-svn] r1470 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Aug 9 12:35:59 BST 2011
Author: whalley Date: Tue Aug 9 12:35:59 2011 New Revision: 1470 Log: removing commas in large numbers Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/Formats.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/Formats.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/Formats.java Tue Aug 9 11:40:38 2011 (r1469) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/Formats.java Tue Aug 9 12:35:59 2011 (r1470) @@ -108,6 +108,7 @@ DecimalFormat myFormatter = new DecimalFormat(); myFormatter.setMinimumFractionDigits(after); myFormatter.setMinimumIntegerDigits(before); + myFormatter.setGroupingUsed(false); String sval = "cannot format this!!"; if( value instanceof Double ){ sval = myFormatter.format(value);
More information about the HepData-svn mailing list |