Changeset ff81b42 for core


Ignore:
Timestamp:
Feb 19, 2018 2:39:21 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c719410
Parents:
646fe20
Message:

Console: Number formatting tweaks (ticket #1913)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    r646fe20 rff81b42  
    16031603        }
    16041604       
    1605         DecimalFormat fmt = new DecimalFormat("##0.00");
     1605        DecimalFormat fmt = new DecimalFormat("##0.##");
    16061606        if (val >= 200) {
    16071607            fmt.setMaximumFractionDigits(0);
     
    16631663            val /= 1000;
    16641664        }
    1665         DecimalFormat fmt = new DecimalFormat("##0.00");
     1665        DecimalFormat fmt = new DecimalFormat("##0.##");
    16661666        if (val >= 200) {
    16671667            fmt.setMaximumFractionDigits(0);
Note: See TracChangeset for help on using the changeset viewer.