See the documentation for Java's Math class: https://docs.oracle.com/en/java/javase/11/docs/api/index.html Match the method and its meaning! abs exp log floor max signum - -1, 0, 1 based on the 'sign' eg for neg/0/pos respectively negateExact - returns the negation. eg 12 -> -12. -3 -> 3 https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html