+ 1
How can i change 5.0 into 5???
5 Respostas
+ 2
ìë
íìžì, ì°šìí !
ëë 돎ìì ìŒëìëêł ìë? ìą ë ììží ìì±íë©Ž ìŹëë€ìŽ ëčì ì ëìž ì ìì”ëë€!
+ 2
s = 5.0
print(int(s))
>>> 5
+ 1
when we use float(5), we get 5.0
then what about 5.0 into 5??
+ 1
oh thanks
0
num= 5.0
print(int(num)) // 5