0

Here we have used: round(x,2). What's the significance of 2 here?

13th Jan 2017, 8:15 PM
Pritish Porwal
Pritish Porwal - avatar
2 odpowiedzi
+ 8
round it to 2 digits length.
13th Jan 2017, 8:16 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
try this: x = 34.846258 print(round(x,2)) print(round(x,3)) print(round(x,5))
13th Jan 2017, 9:08 PM
guest013
guest013 - avatar