Don't pass extra value (cd) to String.format
This commit is contained in:
parent
6417eb1783
commit
553b234252
@ -770,7 +770,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
|
||||
|
||||
DecimalFormat df = new DecimalFormat("0." + "#".repeat(Math.max(0, decimalPlaces)));
|
||||
String cdFormatted = df.format(cd);
|
||||
return String.format(cdFormatted + " (%.0f%%)", cd, 100 * cd / totalCD);
|
||||
return String.format(cdFormatted + " (%.0f%%)", 100 * cd / totalCD);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user