0

can anyone help how to find the approximate value of a number.... in python

30th Dec 2020, 1:51 PM
Karthik C
Karthik C - avatar
4 ответов
+ 1
Do you mean rounding a float? Can you give an example?
30th Dec 2020, 1:56 PM
Lisa
Lisa - avatar
+ 1
x = 2.13 y = round(x)
30th Dec 2020, 1:58 PM
Lisa
Lisa - avatar
+ 1
thank you Lisa
30th Dec 2020, 2:00 PM
Karthik C
Karthik C - avatar
0
yes
30th Dec 2020, 1:57 PM
Karthik C
Karthik C - avatar