what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
Answer Posted / amarnath88888
Math.floor(x) function will return the nearest integer which
is less than the passed value x.
Since -3.0 < -2.1,
-3.0 is the nearest smallest integer.
so answer is c)-3.0
| Is This Answer Correct ? | 28 Yes | 2 No |
Post New Answer View All Answers
Why Java is not pure Object Oriented language?
What is annotation in java?
What is the name of the java compiler?
What is the difference between break and continue statements?
What is the vector class in java programming?
Explain the difference between arraylist and linkedlist in java?
What is a heavyweight component?
What are streams?
Why is boolean important?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
What is difference between c++ and java ?
What is immutable data?
State the merge-sort principle and its time complexity.
What is int lol?
What does s mean in regex?