KaiquanMah commited on
Commit
cd0c274
·
verified ·
1 Parent(s): d81e700

abs exp log floor max signum negateExact

Browse files
Week 3: Objects, files and exceptions/15b. Math-class methods ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ See the documentation for Java's Math class:
2
+ https://docs.oracle.com/en/java/javase/11/docs/api/index.html
3
+ Match the method and its meaning!
4
+
5
+
6
+ abs
7
+ exp
8
+ log
9
+ floor
10
+ max
11
+
12
+ signum - -1, 0, 1 based on the 'sign' eg for neg/0/pos respectively
13
+ negateExact - returns the negation. eg 12 -> -12. -3 -> 3
14
+
15
+ https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html
16
+
17
+
18
+
19
+