|
@@ -182,7 +182,7 @@ public class CalcSkin extends Application {
|
182
|
182
|
button.setOnAction(new EventHandler<ActionEvent>() {
|
183
|
183
|
@Override
|
184
|
184
|
public void handle(ActionEvent actionEvent) {
|
185
|
|
- currentValue.set(Math.pow(currentValue.get(), 2));
|
|
185
|
+ currentValue.set(calcEngine.square(currentValue.get()));
|
186
|
186
|
}
|
187
|
187
|
});
|
188
|
188
|
}
|
|
@@ -192,7 +192,7 @@ public class CalcSkin extends Application {
|
192
|
192
|
button.setOnAction(new EventHandler<ActionEvent>() {
|
193
|
193
|
@Override
|
194
|
194
|
public void handle(ActionEvent actionEvent) {
|
195
|
|
- currentValue.set(Math.sqrt(currentValue.get()));
|
|
195
|
+ currentValue.set(calcEngine.squareRoot(currentValue.get()));
|
196
|
196
|
}
|
197
|
197
|
});
|
198
|
198
|
}
|