diff --git a/Simulator/src/main/java/ui/parameterseries/ParameterCompareTemplatesDialog.java b/Simulator/src/main/java/ui/parameterseries/ParameterCompareTemplatesDialog.java index 8444f3ce..25d986d7 100644 --- a/Simulator/src/main/java/ui/parameterseries/ParameterCompareTemplatesDialog.java +++ b/Simulator/src/main/java/ui/parameterseries/ParameterCompareTemplatesDialog.java @@ -640,7 +640,7 @@ public ParameterCompareTemplatesDialog(final Component owner, final EditModel mo final String minValue; final String maxValue; - final String stepValue; + String stepValue; if (initialValue==null) { minValue=initialValueString; maxValue=initialValueString; @@ -660,9 +660,17 @@ public ParameterCompareTemplatesDialog(final Component owner, final EditModel mo if (l==0) l=1; stepValue=NumberTools.formatLong(l); } else { - minValue=NumberTools.formatNumber(min); - maxValue=NumberTools.formatNumber(max); - stepValue=NumberTools.formatNumber(stepWide); + if (max>10) { + minValue=NumberTools.formatNumber(min); + maxValue=NumberTools.formatNumber(max); + stepValue=NumberTools.formatNumber(stepWide); + if (stepValue.equals("0")) stepValue=NumberTools.formatNumber(stepWide,3); + } else { + minValue=NumberTools.formatNumber(min,3); + maxValue=NumberTools.formatNumber(max,3); + stepValue=NumberTools.formatNumber(stepWide,3); + if (stepValue.equals("0")) stepValue=NumberTools.formatNumber(stepWide,5); + } } }