Rounding | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Rounding

-2.4 and -5.6 IN Arihant the answer for-4.5 is -4 , why?

26th Mar 2017, 1:34 PM
Ajeet Maurya
Ajeet Maurya - avatar
2 Antworten
+ 8
Rounding is nothing but returning the nearest integer, which is -2 for -2.4 and -6 for -5.6
26th Mar 2017, 1:40 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
- 1
-4 is correct for -4.5 because -4 is greter than -5
26th Mar 2017, 2:06 PM
Mayur Chaudhari
Mayur Chaudhari - avatar