Skip to content
Snippets Groups Projects
Commit 98dfa429 authored by Tim Molter's avatar Tim Molter Committed by Niklas Polke
Browse files

fix for issue #98 - Print short points (like 1, 10, 100, 1000) not in scientific notation

parent 7a961555
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,12 @@ public class NumberFormatter { ...@@ -165,7 +165,12 @@ public class NumberFormatter {
decimalPattern = styleManager.getDecimalPattern(); decimalPattern = styleManager.getDecimalPattern();
} }
else { else {
decimalPattern = "0E0"; if (Math.abs(value) > 1000.0 || Math.abs(value) < 0.001) {
decimalPattern = "0E0";
}
else {
decimalPattern = "0.###";
}
} }
DecimalFormat normalFormat = (DecimalFormat) numberFormat; DecimalFormat normalFormat = (DecimalFormat) numberFormat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment