0

long l = Math.round(Math.ciel(-2.3)+Math.floor(-8.4));

Solve this Java equation

5th Feb 2022, 6:11 AM
Bhirigu nandan Prasad
2 odpowiedzi
+ 3
-11 (ciel----->ceil)
5th Feb 2022, 7:19 AM
Debraj Mandal
Debraj Mandal - avatar
0
Math.ceil(-2.3)--->(-2.0) and Math.floor(-8.4)--->(-9.0) , therefore (-2.0 + -9.0 = (-11.0)), Math.round(-11.0)--->(-11) (Answer)
5th Feb 2022, 7:19 AM
Debraj Mandal
Debraj Mandal - avatar