Python: Remove division decimal -


i have made program divides numbers , returns number, thing when returns number has decimal this:

2.0 

but want give me:

2 

so there anyway can this?

thanks in advance!

you can call int() on end result:

>>> int(2.0) 2 

Comments