+ 1

What is it and what is the use of the math class in Java?

It is free option but also answer correctly please

22nd Sep 2019, 12:20 AM
GalloJava
GalloJava - avatar
5 Answers
+ 3
If you don't use the Math class, implementing how you calculate the square root of a number etc will have to be done by yourself and you won't be efficient at writing code.
22nd Sep 2019, 12:28 AM
Sonic
Sonic - avatar
+ 1
All modules are free to use of course, the math module helps you use math functions, like sin, cos, sqrt, and other useful functions, instead of having to write them yourself
22nd Sep 2019, 12:22 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Excuse me, I didn't understand your answer. Could it be spesified better?
22nd Sep 2019, 12:25 AM
GalloJava
GalloJava - avatar
+ 1
Ok thank you very much, the two answers helped me a lot
22nd Sep 2019, 12:30 AM
GalloJava
GalloJava - avatar
22nd Sep 2019, 12:26 AM
Aymane Boukrouh
Aymane Boukrouh - avatar