We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0be5223 commit 5dea736Copy full SHA for 5dea736
src/main/java/edu/wpi/first/smartdashboard/gui/Widget.java
@@ -12,7 +12,6 @@
12
import java.awt.event.ComponentListener;
13
import java.awt.event.FocusEvent;
14
import java.awt.event.FocusListener;
15
-import java.math.BigDecimal;
16
import javax.swing.BorderFactory;
17
import javax.swing.JCheckBox;
18
import javax.swing.JComponent;
@@ -361,7 +360,7 @@ protected void resetValue() {
361
360
@Override
362
public void setBindableValue(double value) {
363
this.value = value;
364
- setText(Double.toString((new BigDecimal(value)).stripTrailingZeros().doubleValue()));
+ setText(String.format("%f", Double.valueOf(value)));
365
}
366
367
protected abstract boolean setValue(double value);
0 commit comments