Solved Need help with java math functions

October 21, 2016 at 07:16:33
Specs: Windows 8, 6
It's been a long time since I asked a question here, but I need help once again.

Long Desc:
I am taking a online course about programming and software design, one of the assignments our teacher has asked us to do was to take a program about how java does math and to add three of our own java math args to it, but as I am new and can't understand the code that my google search's often yield I need some help from you guys, what are a couple args and possibly a dumbed down description as to what the code does.

Short Desc:
I need help learning some java math functions, could you guys by any chance put some code and describe how it works so I can learn it and incorporate it in my work.

These are the args that have already been used so any args that are not these are appreciated, with desc on how it works if possible.

round() Method
myNumber1 = Math.round(7.5342);

sqrt() Method

max() Method

This example uses several Math Methods and a Math constant - PI
circleArea=Math.round(Math.PI * Math.pow(8,2));

random() Method
randomNumber = Math.random();

See More: Need help with java math functions

October 22, 2016 at 04:50:07
✔ Best Answer
This really seems like a job for the Java Docs.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question