|
@@ -84,7 +84,7 @@ public class CalcSkin extends Application {
|
84
|
84
|
screen.setStyle("-fx-background-color: red;");
|
85
|
85
|
screen.setAlignment(Pos.CENTER_RIGHT);
|
86
|
86
|
screen.setEditable(false);
|
87
|
|
- screen.textProperty().bind(Bindings.format("%.0f", currentValue));
|
|
87
|
+ screen.textProperty().bind(Bindings.format("%.4f", currentValue));
|
88
|
88
|
return screen;
|
89
|
89
|
}
|
90
|
90
|
|
|
@@ -118,7 +118,7 @@ public class CalcSkin extends Application {
|
118
|
118
|
makeSquareButton(button);
|
119
|
119
|
} else if ("√x".equals(s)) {
|
120
|
120
|
makeRootButton(button);
|
121
|
|
- } else if ("1/x".equals(button)){
|
|
121
|
+ } else if ("1/x".equals(s)){
|
122
|
122
|
makeInverseButton(button);
|
123
|
123
|
}
|
124
|
124
|
}
|