0

Input give a string value i want to write a programme that actually convert both whole number and the decimal to int.

https://code.sololearn.com/cTao0Pg17cM8/?ref=app

28th Aug 2020, 3:59 PM
Abbakar_ah!!!
Abbakar_ah!!! - avatar
2 Respuestas
+ 2
I agree with Jan Markus but if you want the type of your answer to be int then use: int(float(x))
28th Aug 2020, 4:05 PM
Med Anis Jbara
Med Anis Jbara - avatar
+ 1
Thank you 👍👍
28th Aug 2020, 4:21 PM
Abbakar_ah!!!
Abbakar_ah!!! - avatar