提交 e8325551 编写于 作者: S Serge Rider

#6493 Default floating numbers rounding fix

上级 d00750f5
......@@ -18,6 +18,7 @@ package org.jkiss.dbeaver.model.impl.data.formatters;
import org.jkiss.dbeaver.model.data.DBDDataFormatterSample;
import java.math.RoundingMode;
import java.text.NumberFormat;
import java.util.HashMap;
import java.util.Locale;
......@@ -44,7 +45,8 @@ public class NumberFormatSample implements DBDDataFormatterSample {
props.put(PROP_MAX_FRACT_DIGITS, Math.max(tmp.getMaximumFractionDigits(), 10));
props.put(PROP_MIN_FRACT_DIGITS, tmp.getMinimumFractionDigits());
props.put(PROP_USE_TYPE_SCALE, false);
props.put(PROP_ROUNDING_MODE, tmp.getRoundingMode().name());
// Use UNNECESSARY by default [#6493]
props.put(PROP_ROUNDING_MODE, RoundingMode.UNNECESSARY.name());
return props;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册