0

Pls help me to understand round() statement in a simple code..... thanks

Help

12th Jan 2021, 10:02 AM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
4 Antworten
+ 3
Round() simply round the float to nearest integer. round(8.9) -> 9
12th Jan 2021, 10:03 AM
David Delgado
David Delgado - avatar
12th Jan 2021, 10:10 AM
Arsenic
Arsenic - avatar
+ 2
Just an additional: Rounding numbers in Python is different from most programming languages. Take a look at this post. https://www.sololearn.com/post/876419/?ref=app
12th Jan 2021, 10:41 AM
noteve
noteve - avatar
+ 1
code for concept of David Delgado print(round(8.9))
12th Jan 2021, 10:36 AM
Rik Wittkopp
Rik Wittkopp - avatar