5 years ago in java.lang Package

What will be output by the following line?

System.out.println(Math.floor(-2.1));

[A] -2
[B] 2.0
[C] -3
[D] -3.0
Loading...
Next Question

Overall Stats

Attempted 112
Correct 13
Incorrect 50
Viewed 49

Answers

Guest
Guest
bruh
bruh - 4 weeks ago

bruh from Guwahati, India is saying -3 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying 2.0 is correct answer

Cos Sinus
Cos Sinus - 4 weeks ago

Cos Sinus from Casablanca, Morocco is saying -3 is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying 2.0 is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying -2 is correct answer

Related Questions